PEP 675: Arbitrary Literal String Type

GPTKB entity

Statements (22)
Predicate Object
gptkbp:instanceOf Python Enhancement Proposal
gptkbp:allows Introduces a new type, LiteralString, to type hint values that are known to be literal strings.
gptkbp:applies-to Python type hints
gptkbp:author Shantanu Jain
gptkbp:containsModule typing
gptkbp:created 2022-05-01
gptkbp:discusses https://discuss.python.org/t/pep-675-arbitrary-literal-string-type/16313
https://www.w3.org/2000/01/rdf-schema#label PEP 675: Arbitrary Literal String Type
gptkbp:introduced-type LiteralString
gptkbp:JEP_number 675
gptkbp:motive To improve type safety for APIs that require literal strings, such as SQL queries or format strings.
gptkbp:PEP_index https://peps.python.org/pep-0675/
gptkbp:python-version 3.11
gptkbp:replacedBy No previous PEP
gptkbp:resolution gptkb:Accepted
gptkbp:seeAlso gptkb:PEP_604
PEP 586
gptkbp:status Final
gptkbp:title Arbitrary Literal String Type
gptkbp:type Standards Track
gptkbp:bfsParent gptkb:Python_3.11
gptkbp:bfsLayer 6