PaperPython Enhancement Proposal 526
PEP 526
A Python Enhancement Proposal that formally introduced variable-level type annotation syntax in Python 3.6 (such as x: int = 0), distinguishing annotated assignments with initial values from declarations without assignment.
Timeline (last 90 days)
Nov 15
Variable-level type hints were formally introduced by PEP 526 in Python 3.6, with the syntax form x: int = 0, and distinguish annotated assignments with an initial value from declarations without assignment.
Unverified50%