First Check
Commit to Help
Example Code
from typing import Optional
import typer
def main(
limit: Optional[int] = typer.Option(11),
):
print(limit)
if __name__ == "__main__":
typer.run(main)
Description
How do I pass the None value for an Optional argument that has a non-None default value?
Operating System
macOS
Operating System Details
No response
Typer Version
0.7.0
Python Version
Python 3.9.13
Additional Context
No response
First Check
Commit to Help
Example Code
Description
How do I pass the
Nonevalue for anOptionalargument that has a non-Nonedefault value?Operating System
macOS
Operating System Details
No response
Typer Version
0.7.0
Python Version
Python 3.9.13
Additional Context
No response