PEP 526

E911262

PEP 526 is a Python Enhancement Proposal that introduced a standard syntax for variable and attribute type annotations in Python.

All labels observed (1)

Label Occurrences
PEP 526 canonical 7

How this entity was disambiguated

Statements (35)

Predicate Object
instanceOf Python Enhancement Proposal ⓘ
affects static type checking in Python ⓘ
allows annotations for class attributes ⓘ
annotations for instance attributes ⓘ
annotations for module-level variables ⓘ
author Guido van Rossum ⓘ
Jukka Lehtosalo ⓘ
Łukasz Langa ⓘ
bdflDelegate Guido van Rossum ⓘ
category Typing ⓘ
clarifies that annotations have no runtime effect by default ⓘ
created 2016-09-07 ⓘ
defines syntax for attribute annotations ⓘ
syntax for variable annotations ⓘ
discussedOn python-dev mailing list ⓘ
exampleSyntax primes: List[int] = [] ⓘ
self.name: str ⓘ
x: int = 0 ⓘ
influenced subsequent typing-related PEPs ⓘ
introducedInPythonVersion Python 3.6 ⓘ
language Python ⓘ
motivation standardize syntax for type annotations on variables and attributes ⓘ
number 526 ⓘ
relatedTo PEP 3107 ⓘ
PEP 484 ⓘ
replaces comment-based type hints for variables ⓘ
requires support from type checkers like mypy ⓘ
scope syntax only, not type system semantics ⓘ
specifies storage of annotations in __annotations__ mapping ⓘ
status Final ⓘ
title Syntax for Variable Annotations ⓘ
topic attribute annotations ⓘ
type annotations ⓘ
variable annotations ⓘ
url https://peps.python.org/pep-0526/ ⓘ

How these facts were elicited

Referenced by (7)

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

PEP 484 → relatedTo → PEP 526 ⓘ
typing (Python module) → relatedPEP → PEP 526 ⓘ
subject linked to: typing
typing → extendedByPEP → PEP 526 ⓘ
subject linked to: Python typing module
PEP 613 → buildsOn → PEP 526 ⓘ
PEP 483 → relatedTo → PEP 526 ⓘ
PEP 3107 → relatedTo → PEP 526 ⓘ
PEP 544 → buildsOn → PEP 526 ⓘ