Concept
typing.Literal
A type construct in Python's typing module used to annotate that a variable may only take on specific literal values.
Timeline (last 90 days)
Oct 22
PEP 484 provides tools such as typing.Literal, typing.Final and typing.TypeGuard to describe special values.
Unverified50%