Login
Roast topics
Find topics
Find it!
From:
Python Enhancement Proposals (PEPs)
(Uncensored)
subscribe
PEP 526 – Syntax for Variable Annotations | peps.python.org
https://peps.python.org/pep-0526/
links
backlinks
Roast topics
Find topics
Roast it!
PEP 484 introduced type hints, a.k.a. type annotations. While its main focus was function annotations, it also introduced the notion of type comments to annotate variables: