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

Ban more imports from typing_extensions as part of Y023 #459

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

AlexWaygood
Copy link
Collaborator

No description provided.

This comment has been minimized.

@AlexWaygood
Copy link
Collaborator Author

(We should wait for python/typeshed#11244 to be merged, so we can get a proper report from typeshed_primer)

This comment has been minimized.

Copy link

github-actions bot commented Jan 5, 2024

⚠ Flake8 diff showing the effect of this PR on typeshed:

> ./stdlib/builtins.pyi:59:1: Y023 Use "typing.Literal" instead of "typing_extensions.Literal"

@AlexWaygood AlexWaygood merged commit a113980 into main Jan 5, 2024
58 checks passed
@AlexWaygood AlexWaygood deleted the more-y023 branch January 5, 2024 18:05
"SupportsRound",
"TypedDict",
"TypeVar",
"final",
"overload",
"NoReturn",
# ClassVar deliberately omitted,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this comment still accurate? There are now several others in the list that can be parameterized (Generic, Literal, Protocol).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think ClassVar is probably the only one worth special-casing in error messages. But if you'd like to PR something up special-casing some of the others in error messages as well, feel free :)

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.

3 participants