Skip to content
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

Incomplete typing info for @command decorator #33

Closed
oliverandrich opened this issue Mar 4, 2024 · 3 comments
Closed

Incomplete typing info for @command decorator #33

oliverandrich opened this issue Mar 4, 2024 · 3 comments
Assignees
Labels
typing Issues involving static type hints.

Comments

@oliverandrich
Copy link
Contributor

CleanShot 2024-03-04 at 22 12 15@2x

If I use the example code, I see this message from mypy. The same applies to pyright. It seems as the type signature of command() is incomplete. May be it just helps to add Any as a type for args and kwargs?

@bckohan bckohan self-assigned this Mar 4, 2024
@bckohan bckohan added bug Something isn't working typing Issues involving static type hints. and removed bug Something isn't working labels Mar 4, 2024
@bckohan
Copy link
Owner

bckohan commented Mar 4, 2024

This also applies to group, initialize, GroupFunction.group and GroupFunction.command

@bckohan
Copy link
Owner

bckohan commented Mar 4, 2024

Hi Oliver - I really appreciate you trying the library out and letting me know about all these issues!

Can I ask what your development setup is? Are you running vscode?

@oliverandrich
Copy link
Contributor Author

Yes, I am using vscode. Until yesterday I was fully on Pylance/pyright for TypeChecking. But yesterday I decided to give mypy another try and it seems to work for me finally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Issues involving static type hints.
Projects
None yet
Development

No branches or pull requests

2 participants