Skip to content

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

Merged
merged 3 commits into from
Aug 12, 2025

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Aug 8, 2025

Comment on lines +20 to +21

from __future__ import annotations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from __future__ import annotations
from __future__ import annotations

Copy link
Member Author

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:

from __future__ import annotations

So, I prefer to keep this as-is.

@sobolevn sobolevn merged commit 68a61b0 into python:main Aug 12, 2025
52 checks passed
@miss-islington-app
Copy link

Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 12, 2025
…nsion_modules` with mypy (pythonGH-137546)

(cherry picked from commit 68a61b0)

Co-authored-by: sobolevn <mail@sobolevn.me>
@miss-islington-app
Copy link

Sorry, @sobolevn, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 68a61b0f1d5661180fd432ff9b8ab21272468a87 3.13

@bedevere-app
Copy link

bedevere-app bot commented Aug 12, 2025

GH-137679 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Aug 12, 2025
sobolevn added a commit to sobolevn/cpython that referenced this pull request Aug 12, 2025
…ck_extension_modules` with mypy (pythonGH-137546)

(cherry picked from commit 68a61b0)

Co-authored-by: sobolevn <mail@sobolevn.me>
sobolevn added a commit to sobolevn/cpython that referenced this pull request Aug 12, 2025
…ck_extension_modules` with mypy (pythonGH-137546)

(cherry picked from commit 68a61b0)

Co-authored-by: sobolevn <mail@sobolevn.me>
@bedevere-app
Copy link

bedevere-app bot commented Aug 12, 2025

GH-137691 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 12, 2025
sobolevn added a commit that referenced this pull request Aug 13, 2025
…ension_modules` with mypy (GH-137546) (#137691)

(cherry picked from commit 68a61b0)
hugovk pushed a commit that referenced this pull request Aug 13, 2025
…ension_modules` with mypy (GH-137546) (#137679)

Co-authored-by: sobolevn <mail@sobolevn.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants