TypeLiteral[str]?

On Thu, 2022-01-13 at 06:46 -0800, Paul Bryan wrote:
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.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: pbryan@anode.ca

_______________________________________________
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: pbryan@anode.ca