| **************** |
| Type Annotations |
| **************** |
| |
| Functions |
| ========= |
| |
| Parameters |
| ---------- |
| |
| Asynchronous Functions |
| ---------------------- |
| |
| Generators |
| ---------- |
| |
| Lambdas |
| ------- |
| |
| |
| Classes |
| ======= |
| |
| Overloads and Overrides |
| ----------------------- |
| |
| Instance vs. Class Attributes |
| ----------------------------- |
| |
| Final attributes |
| ---------------- |
| |
| Abstract base classes |
| --------------------- |
| |
| |
| Globals |
| ======= |
| |
| |
| Attributes |
| ========== |
| |
| |
| Locals |
| ====== |
| |
| Empty Containers |
| ---------------- |
| |
| |
| Runtime Considerations |
| ====================== |
| |
| Comment vs. Inline Support |
| -------------------------- |
| |
| Forward References |
| ------------------ |
| |
| Generic types that don't implement `__getitem__` |
| ------------------------------------------------ |
| |
| Conditioning on static type checking |
| ------------------------------------ |
| |
| from `__future__` import annotations |
| ------------------------------------ |