-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
uWSGI: Use a TypeVarTuple
in uwsgidecorators.thread
#11128
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Looks like pytype isn't happy with the use of a |
Is there a pytype issue we can refer to that tracks the necessary support? |
This comment has been minimized.
This comment has been minimized.
The issue is that pytype doesn't yet support classes being generic over When we use |
The reason it's harder is that the generic now needs to be able to accept multiple values instead of just one, as well as some of the other special rules, such as not requiring redundant brackets. So I can see why there is maybe no easy way to add partial support for it, except for maybe the most simple case, where a generic accepts a single |
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
This addresses one of the FIXME comments (and a stubtest_allowlist entry) in types-uWSGI
Deferral reason: google/pytype#1525