-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove force_uppercase_builtins default from test helpers #19173
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
Remove force_uppercase_builtins default from test helpers #19173
Conversation
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.
Nice! I have one question.
mypy/test/helpers.py
Outdated
if m := re.search(r"python3([0-9]+)\.test$", path): | ||
# For older unsupported version like python38, | ||
# default to that earliest supported version. | ||
return max((3, int(m.group(1))), defaults.PYTHON3_VERSION) |
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.
Should this use PYTHON3_VERSION_MIN
?
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.
Tbh I wasn't sure myself. PYTHON3_VERSION_MIN
makes sense, but in that case we should also use it as the default for all other test cases as well, not just those with -python3X
. Pushed dcde1aa to adjust it.
0b70f03
to
dcde1aa
Compare
Mypy only supports Python 3.9+. Update the tests to use lowercase names for PEP 585 generics in error messages. A followup can consider deprecating `--force-uppercase-builtins` and making it a no-op.
Use lowercase builtins for error messages, Mypy only supports 3.9+. This PR deprecates the `--force-uppercase-builtins` flag and makes it a no-op. Followup to #19173.
Mypy only supports Python 3.9+. Update the tests to use lowercase names for PEP 585 generics in error messages. A followup can consider deprecating
--force-uppercase-builtins
and making it a no-op.