• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1****************
2Type Annotations
3****************
4
5Functions
6=========
7
8Parameters
9----------
10
11Asynchronous Functions
12----------------------
13
14Generators
15----------
16
17Lambdas
18-------
19
20
21Classes
22=======
23
24Overloads and Overrides
25-----------------------
26
27Instance vs. Class Attributes
28-----------------------------
29
30Final attributes
31----------------
32
33Abstract base classes
34---------------------
35
36
37Globals
38=======
39
40
41Attributes
42==========
43
44
45Locals
46======
47
48Empty Containers
49----------------
50
51
52Runtime Considerations
53======================
54
55Comment vs. Inline Support
56--------------------------
57
58Forward References
59------------------
60
61Generic types that don't implement `__getitem__`
62------------------------------------------------
63
64Conditioning on static type checking
65------------------------------------
66
67from `__future__` import annotations
68------------------------------------
69