-
Notifications
You must be signed in to change notification settings - Fork 242
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
add LiteralString #1053
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.
LGTM, but should we wait in case someone has last-minute, heavy objections to the LiteralString
name?
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. |
I've converted this to a draft, just so I don't merge this by accident. Please unconvert (or merge) when ready. |
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.
Thank you!
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Based on the latest revision of PEP 675 (cc @pradeep90).
The implementation is copied from
Self
, so the only interesting part is the docstring.