type hinting (PEP 484)

GPTKB entity

Statements (23)
Predicate Object
gptkbp:instanceOf Python Enhancement Proposal
gptkbp:allows static type checking
gptkbp:author gptkb:Guido_van_Rossum
gptkbp:category Python language feature
gptkbp:created 2014-09-29
gptkbp:defines standard for type annotations
gptkbp:does_not_affect runtime behavior
gptkbp:enables linters
type checkers
IDEs to provide better support
tools like mypy
gptkbp:example_syntax def foo(x: int) -> str:
gptkbp:heldBy optional
https://www.w3.org/2000/01/rdf-schema#label type hinting (PEP 484)
gptkbp:introduced typing module
gptkbp:JEP_number 484
gptkbp:proposedBy type hints for Python
gptkbp:python_version_introduced 3.5
gptkbp:seeAlso gptkb:PEP_526
gptkb:PEP_563
gptkbp:status Final
gptkbp:bfsParent gptkb:Python_3.5
gptkbp:bfsLayer 7