New issue
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
command and group decorators are untyped on strict #2255
Comments
From the typing docs: https://docs.python.org/3/library/typing.html#typing.Callable
This should be reported to pyright. |
Interesting, I will open a discussion there. Thanks! |
Fix is fine, I merged it. But pyright shouldn't be reporting it in the first place. Please leave a link here to the issue. |
Opened microsoft/pyright#3386 regarding this. |
Summary:
The
click.command
andclick.group
decorators are currently untyped and cause typing errors on strict pyright. (I haven't tested with mypy).Replication:
These decorators are both unknown due to the use of
typing.Callable
with no generics. PR incoming.Environment:
The text was updated successfully, but these errors were encountered: