-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Don't accidentally ignore typeguard validity for staticmethods #14953
Don't accidentally ignore typeguard validity for staticmethods #14953
Conversation
Apologies for the commit spam, I was trying out the github.dev editor (which doesn't actually run anything...) as I thought this would be a trivial change xd |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
:/ Why does the line referenced depend on Python version... |
Possibly because we use |
Huh, didn't realize we parsed with different parsers like that. I'm not sure why Python nightly passes though. |
Yeah, prior to 3.8, type comments weren't parsed by the stdlib
We mark the nightly run as a success even if the tests fail ;) mypy/.github/workflows/test.yml Line 156 in 764ff6f
If you click the "details" button, you'll see that many tests currently fail on 3.12. I presume most of these are due to mypyc incompatibilities with changes made to the CPython interpreter that have yet to be released (haven't looked at them in depth/at all). |
Co-authored-by: Alex Waygood <[email protected]>
This comment has been minimized.
This comment has been minimized.
Thank you! :-) |
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. 🤖🎉 |
I was checking through my previous contributions and noticed I messed up the logic here. I added a test case that currently is wrong.
Followup to #14238
I haven't run this on my own machine (it's a one line change....) but presumably CI will pass!