-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Support PEP 675 (LiteralString) #12554
Copy link
Copy link
Open
Labels
affects-typeshedAnything that blocks a typeshed changeAnything that blocks a typeshed changefeaturemetaIssues tracking a broad area of workIssues tracking a broad area of worktopic-literalstringPEP 675PEP 675
Metadata
Metadata
Assignees
Labels
affects-typeshedAnything that blocks a typeshed changeAnything that blocks a typeshed changefeaturemetaIssues tracking a broad area of workIssues tracking a broad area of worktopic-literalstringPEP 675PEP 675
We should support
LiteralStringfrom PEP 675 (https://peps.python.org/pep-0675/).As a first step, I would suggest changing the semantic analyzer to treat LiteralString simply as an alias for
str. That's not correct, but it will be enough to enable third-party libraries and typeshed to start using LiteralString.