Typing and annotation
Variable
Any variable could be annotated by : operator like:
# Original
var = value
# Annotation
var: TYPE = value
Function
def foo(a, b, c=False, d = None):
...
could become more readable in
def foo(a: int, b: str, c: bool = False, d: None = None) -> str:
...
Class
class C:
id
counter
will become
class C:
id: int
name: str = 'Picard'