We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for the useful lib. We recently ran into an unexpected behaviour when hint typing the CLI functions. Minimal reproduction:
from minicli import cli, run @cli async def age(my_age: int = None) -> None: if my_age: print(type(my_age)) @cli async def age_optional(my_age: int | None = None) -> None: if my_age: print(type(my_age)) if __name__ == "__main__": run()
When running the commands:
age
int
age_optional
str
Note: same behaviour with Optional[int] and Union[int, None].
Optional[int]
Union[int, None]
Is this expected?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for the useful lib. We recently ran into an unexpected behaviour when hint typing the CLI functions.
Minimal reproduction:
When running the commands:
age
) returnsint
age_optional
) incorrectly returnsstr
Note: same behaviour with
Optional[int]
andUnion[int, None]
.Is this expected?
The text was updated successfully, but these errors were encountered: