PEP 252 – Making Types Look More Like Classes | peps.python.org
Apr 19, 2001 ... Examples of dynamic attributes are instance variables of class instances, module attributes, etc. Examples of static attributes are the methods ...
Apr 19, 2001 ... Examples of dynamic attributes are instance variables of class instances, module attributes, etc. Examples of static attributes are the methods ...
Type Parameter Declarations. Here is a new syntax for declaring type parameters for generic classes, functions, and type aliases. The syntax adds support for a comma-delimited list of type parameters in square brackets after the name of the class, function, or type alias.
Variable annotations in stub files. Preferred coding style for variable annotations. Changes to Standard Library and Documentation. Runtime Effects of Type Annotations.
ParamSpec Variables. Declaration. A parameter specification variable is defined in a similar manner to how a normal type variable is defined with typing.TypeVar.Otherwise, existing code that doesn’t reference the new interfaces will be unaffected.
This PEP proposes a standardized way to provide documentation strings for Python symbols defined with Annotated using a new class typing.Doc.