Skip to content

Add FileDescriptorOrPath and Unused type aliases #9475

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 2 commits into from
Jan 8, 2023

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jan 8, 2023

Closes #9297 and see #9470 (comment)

I found myself using a _Unused TypeAlias a lot for semantic reasons.

Of course they can't be used everywhere until the next mypy update.

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2023

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 41de531 into python:main Jan 8, 2023
@AlexWaygood
Copy link
Member

Of course they can't be used everywhere until the next mypy update.

(stdlib usage is fine now, but, as you say, we'll have to hold off on third-party usage until mypy 1.0 comes along :)

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.

StrOrBytesPath | FileDescriptor alias
2 participants