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

Find a way around python type checkers complaining about guppy #277

Open
ss2165 opened this issue Jun 28, 2024 · 2 comments
Open

Find a way around python type checkers complaining about guppy #277

ss2165 opened this issue Jun 28, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ss2165
Copy link
Member

ss2165 commented Jun 28, 2024

So mypy knows to ignore it https://docs.python.org/3/library/typing.html#typing.no_type_check

@mark-koch
Copy link
Collaborator

The thing we want is https://docs.python.org/3/library/typing.html#typing.no_type_check_decorator to annotate @guppy as always being no_type_check.

Unfortunalty, no Python type checker has implemented it and it's going to be deprecated in Python 3.13: python/cpython#106309

@ss2165 ss2165 changed the title Automatically annotate guppy definitions with @no_type_check Find a way around python type checkers complaining about guppy Jul 17, 2024
@croyzor
Copy link
Collaborator

croyzor commented Jul 17, 2024

Relatedly, when we call tuples of functions in guppy code, mypy complains that tuples aren't callable 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants