PEP 613

E904863

PEP 613 is a Python Enhancement Proposal that introduces the `TypeAlias` annotation to clearly declare and distinguish type aliases in Python’s type hinting system.

All labels observed (1)

Label Occurrences
PEP 613 canonical 1

How this entity was disambiguated

Statements (45)

Predicate Object
instanceOf Python Enhancement Proposal
aimsTo reduce ambiguity in type alias declarations
author Jelle Zijlstra
Pradeep Kumar Srinivasan
belongsTo Python PEP index
buildsOn PEP 484
PEP 526
PEP 544
category Typing PEP
linked to: typing
clarifies difference between simple assignment and type alias declaration
how type checkers should treat TypeAlias
createdForPythonVersion Python 3.10
definesConcept explicit type aliases
definesName typing.TypeAlias
linked to: TypeAlias

typing_extensions.TypeAlias
definesSyntax AliasName: TypeAlias = ExistingType
discusses distinguishing type aliases from normal variables
forward references in type aliases
runtime behavior of TypeAlias
discussesModule typing
typing_extensions
governingBody Python Steering Council
hasAbbreviation PEP-613
hasNumber 613
hasTitle Explicit Type Aliases
hostedOn https://peps.python.org/pep-0613/
introducedIn Python 3.10
language English
motivation to clearly declare and distinguish type aliases from regular variables
to help type checkers recognize type aliases
to improve readability of type hints
proposesFeature TypeAlias annotation
relatedTo PEP 585
PEP 604
PEP 649
relatesTo Python type hinting
static type checking
requires PEP 484
standardizes notation for type aliases
status Accepted
targetAudience Python application developers
Python library authors
type checker authors
topic Python language design
Python typing

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Python 3.10 implementsPEP PEP 613