Python typing module

E887713

The Python typing module is a standard library component that adds support for type hints and static type checking to Python code, enabling clearer interfaces and improved tooling.

All labels observed (9)

How this entity was disambiguated

Statements (50)

Predicate Object
instanceOf Python standard library module
type hinting library
backportedBy typing_extensions
definedInPEP PEP 484
defines Any
Callable
ClassVar
Final
ForwardRef
Generic
Literal
NewType
NoReturn
Optional
Protocol
TypeVar
TypedDict
Union
get_type_hints
overload
runtime_checkable
enables static type checking
extendedByPEP PEP 526
PEP 544
PEP 560
PEP 585
PEP 604
PEP 649
improves code readability
tooling support
introducedInVersion Python 3.5
language Python
license Python Software Foundation License
location Lib/typing.py
partOf Python standard library
provides type hints support
relatedTo typing_extensions
replacedBy built-in generic types in Python 3.9+
supports forward references
generic types
nominal subtyping
parametric polymorphism
runtime introspection of annotations
static type checkers
structural subtyping
type aliases
usedBy PyCharm type checker
mypy
pylance
pyright

How these facts were elicited

Referenced by (11)

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

Ivan Levkivskyi contributedTo Python typing module
Python generic function definitions relatedTo Python typing module
PEP 484 title Type Hints
linked to: Python typing module
PEP 484 defines typing.Callable
linked to: Python typing module
PEP 484 defines typing.Mapping
linked to: Python typing module
PEP 484 defines typing.overload
linked to: Python typing module
typing (Python module) supports TypedDict
subject linked to: typing
linked to: Python typing module
PEP 647 TypeGuard belongsTo Python typing module
PEP 613 topic Python typing
linked to: Python typing module
PEP 560 hasTitle Core support for typing module and generic types
linked to: Python typing module
PEP 544 introducesConcept typing.Protocol
linked to: Python typing module