Skip to content

Disallow inline config of Python version#18497

Merged
hauntsaninja merged 2 commits into
python:masterfrom
hauntsaninja:envfix
Jan 25, 2025
Merged

Disallow inline config of Python version#18497
hauntsaninja merged 2 commits into
python:masterfrom
hauntsaninja:envfix

Conversation

@hauntsaninja

Copy link
Copy Markdown
Collaborator

Fixes #18450

@github-actions

This comment has been minimized.

@JukkaL JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

Comment thread mypy/config_parser.py
@hauntsaninja

Copy link
Copy Markdown
Collaborator Author

Added a test (but note it's not a test for the specific crash reported, since we'd need full stubs for that)

@github-actions

Copy link
Copy Markdown
Contributor

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

@hauntsaninja
hauntsaninja merged commit 48d888a into python:master Jan 25, 2025
@hauntsaninja
hauntsaninja deleted the envfix branch January 25, 2025 03:06
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
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.

Inline configuration for a newer Python version crashes for union syntax on types (PEP 604)

2 participants