Statements (27)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:Python_Enhancement_Proposal
|
| gptkbp:allows |
Callable types
Generic types Optional types TypeVar Union types |
| gptkbp:appliesTo |
function signatures
variable annotations |
| gptkbp:category |
Python language feature
Python typing |
| gptkbp:checksFor |
type checkers
|
| gptkbp:compatibleWith |
runtime behavior
|
| gptkbp:describes |
syntax for type hints in Python
|
| gptkbp:documentation |
https://peps.python.org/pep-0484/
|
| gptkbp:enables |
static type checking
|
| gptkbp:example |
def greeting(name: str) -> str:
|
| gptkbp:introducedIn |
gptkb:Python_3.5
|
| gptkbp:proposedBy |
gptkb:Guido_van_Rossum
|
| gptkbp:publicationYear |
2014
|
| gptkbp:relatedTo |
gptkb:PEP_526
gptkb:PEP_563 gptkb:PEP_585 |
| gptkbp:status |
Final
|
| gptkbp:uses |
typing module
|
| gptkbp:bfsParent |
gptkb:Python_3.5+
|
| gptkbp:bfsLayer |
7
|
| https://www.w3.org/2000/01/rdf-schema#label |
type hints (PEP 484)
|