Skip to content

Use more lower case builtins in error messages #19177

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 1 commit into from
May 30, 2025

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented May 30, 2025

No description provided.

@cdce8p cdce8p added the topic-pep-585 PEP 585 (builtin generics) label May 30, 2025
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/utilities/collections.py:478: error: Cannot instantiate type "Type[tuple[Any]]"  [misc]
+ src/prefect/utilities/collections.py:478: error: Cannot instantiate type "type[tuple[Any]]"  [misc]

pandera (https://github.com/pandera-dev/pandera)
- pandera/engines/pandas_engine.py:74: error: Cannot assign multiple types to name "TYPEGUARD_ERROR" without an explicit "Type[...]" annotation  [misc]
+ pandera/engines/pandas_engine.py:74: error: Cannot assign multiple types to name "TYPEGUARD_ERROR" without an explicit "type[...]" annotation  [misc]

@hauntsaninja hauntsaninja merged commit e57ece0 into python:master May 30, 2025
19 checks passed
@cdce8p cdce8p deleted the more-lowercase-builtins branch May 30, 2025 19:27
cdce8p added a commit to cdce8p/mypy that referenced this pull request May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-pep-585 PEP 585 (builtin generics)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants