LiteralType[str]?On Thu, 2022-01-13 at 11:28 +0100, Sebastian Rittau wrote:Am 12.01.22 um 23:47 schrieb Graham Bleaney:I think a consistent piece of feedback has been that `Literal[str]` has problems, so let's get rid of it. Here are some alternatives that have been suggested by various folks:
- With parameterization:
- AnyLiteral[str]
While I like this name in theory, I would avoid a name containing "Any" for this, since this implies a typing escape hatch.
- Sebastian
_______________________________________________Typing-sig mailing list -- typing-sig@python.orgTo unsubscribe send an email to typing-sig-leave@python.orgMember address: pbryan@anode.ca_______________________________________________Typing-sig mailing list -- typing-sig@python.orgTo unsubscribe send an email to typing-sig-leave@python.orgMember address: pbryan@anode.ca