How do I use the command decorator with MyPy strict enabled? #1008
Unanswered
Owen-OptiGrid
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I ran MyPy in strict mode and it complains about the command decorator:
run.py:7: error: Untyped decorator makes function "main" untyped [misc]
Is there a way or an example of using the command decorator in a way that keeps MyPy happy?
Operating System
Windows
Operating System Details
Windows 11 version 23H2
Typer Version
0.12.5
Python Version
3.12.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions