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

stubgen: do not include mypy generated symbols #18137

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

hamdanal
Copy link
Collaborator

@hamdanal hamdanal commented Nov 10, 2024

Addresses part of #18081

stubgen still does not handle dataclass transforms correctly but with this change we make sure to never include private mypy generated symbols in the stubs.

This comment has been minimized.

mypy/stubutil.py Outdated Show resolved Hide resolved
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit 3e52d0c into python:master Nov 14, 2024
20 checks passed
@hamdanal hamdanal deleted the stubgen-mypy-generated branch November 14, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants