First Check
Commit to Help
Example Code
from __future__ import annotations
import typer
app = typer.Typer()
def main():
app()
@app.command()
def test(flag: bool | None = typer.Option(None, "--flag", "-f", help="A flag")):
print(flag)
if __name__ == "__main__":
main()
Description
- Run the example code
- See the error: https://sourceb.in/SxyHEeLZxf
Operating System
Linux
Operating System Details
No response
Typer Version
0.4.0
Python Version
Python 3.8.10
Additional Context
No response
First Check
Commit to Help
Example Code
Description
Operating System
Linux
Operating System Details
No response
Typer Version
0.4.0
Python Version
Python 3.8.10
Additional Context
No response