PEP 613 TypeAlias annotation

E884132

PEP 613 TypeAlias annotation is a Python typing feature that introduces a dedicated `TypeAlias` marker to clearly distinguish type alias declarations from regular variable assignments.

All labels observed (2)

Label Occurrences
Explicit Type Aliases 2
PEP 613 TypeAlias annotation canonical 1

How this entity was disambiguated

Statements (31)

Predicate Object
instanceOf PEP ⓘ
Python typing feature ⓘ
affects static analysis tools ⓘ
appliesTo Python type hints ⓘ
backwardsCompatibleWith existing type hints ⓘ
category typing and type system ⓘ
clarifies when a name is a normal variable ⓘ
when a name is a type alias ⓘ
definesConcept explicit type alias ⓘ
definesName TypeAlias ⓘ
encourages explicit type alias declarations in codebases ⓘ
example Vector = list[float] ⓘ
exampleWithMarker Vector: TypeAlias = list[float] ⓘ
hasTitle Explicit Type Aliases ⓘ
introducedMarker TypeAlias ⓘ
language Python ⓘ
motivates clear distinction between type aliases and variables ⓘ
partOf typing module ⓘ
primaryGoal make type alias declarations explicit ⓘ
relatedTo PEP 484 ⓘ
PEP 585 ⓘ
PEP 604 ⓘ
relevantFor PyCharm type checker ⓘ
mypy ⓘ
pyright ⓘ
linked to: Pyright

static type checkers ⓘ
solvesProblem ambiguity between type alias declarations and regular assignments ⓘ
status Accepted ⓘ
TypeAliasIs special typing marker ⓘ
TypeAliasLivesIn typing module ⓘ
usesSyntax TypeAlias = ... ⓘ

How these facts were elicited

Referenced by (3)

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

Python 3.10 → hasTypingFeature → PEP 613 TypeAlias annotation ⓘ
PEP 613 TypeAlias annotation → hasTitle → Explicit Type Aliases ⓘ
linked to: PEP 613 TypeAlias annotation
PEP 613 → hasTitle → Explicit Type Aliases ⓘ
linked to: PEP 613 TypeAlias annotation