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

add LiteralString #1053

Merged
merged 11 commits into from
Feb 11, 2022
Merged

add LiteralString #1053

merged 11 commits into from
Feb 11, 2022

Conversation

JelleZijlstra
Copy link
Member

Based on the latest revision of PEP 675 (cc @pradeep90).

The implementation is copied from Self, so the only interesting part is the docstring.

Copy link

@pradeep90 pradeep90 left a comment

Choose a reason for hiding this comment

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

LGTM, but should we wait in case someone has last-minute, heavy objections to the LiteralString name?

typing_extensions/src/test_typing_extensions.py Outdated Show resolved Hide resolved
@JelleZijlstra
Copy link
Member Author

Good idea, I'll hold off on merging for a while. I'm hoping to release typing-extensions 4.1 once we have PEP 646 support, dataclass_transform, all the functions I'm adding to typing, and this one all implemented.

@srittau srittau marked this pull request as draft February 2, 2022 10:20
@srittau
Copy link
Collaborator

srittau commented Feb 2, 2022

I've converted this to a draft, just so I don't merge this by accident. Please unconvert (or merge) when ready.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thank you!

typing_extensions/src/typing_extensions.py Outdated Show resolved Hide resolved
@JelleZijlstra JelleZijlstra marked this pull request as ready for review February 11, 2022 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants