-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
gh-133403: Check generate_stdlib_module_names
and check_extension_modules
with mypy
#137546
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
Conversation
…nsion_modules` with mypy
|
||
from __future__ import annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from __future__ import annotations | |
from __future__ import annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both black
and ruff
format it with the extra new line. Other modules also use this style:
cpython/Tools/build/deepfreeze.py
Line 9 in 715647a
from __future__ import annotations |
So, I prefer to keep this as-is.
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…nsion_modules` with mypy (pythonGH-137546) (cherry picked from commit 68a61b0) Co-authored-by: sobolevn <mail@sobolevn.me>
Sorry, @sobolevn, I could not cleanly backport this to
|
GH-137679 is a backport of this pull request to the 3.14 branch. |
…ck_extension_modules` with mypy (pythonGH-137546) (cherry picked from commit 68a61b0) Co-authored-by: sobolevn <mail@sobolevn.me>
…ck_extension_modules` with mypy (pythonGH-137546) (cherry picked from commit 68a61b0) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-137691 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.