You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider PEP 675 for inclusion in Python 3.11. This is primarily of interest to users of static type checkers. It introduces a supertype for precise literal string types, such as Literal["foo"], called LiteralString.
We have a reference implementation of the type checking part in Pyre and an implementation of the LiteralString special form in typing_extensions.py (PR).
Please consider PEP 675 for inclusion in Python 3.11. This is primarily of interest to users of static type checkers. It introduces a supertype for precise literal string types, such as
Literal["foo"]
, calledLiteralString
.The PEP has been discussed at length in typing-sig (thread 1, thread 2) and on the draft doc. We have also notified python-dev. There is also a Reddit thread and a BPO issue mentioning the PEP.
We have a reference implementation of the type checking part in Pyre and an implementation of the
LiteralString
special form intyping_extensions.py
(PR).CC: @gbleaney @JelleZijlstra
https://www.python.org/dev/peps/pep-0675/
The text was updated successfully, but these errors were encountered: