Extra Credit

Python Typing Specification

Official docs outline

7 sections
  1. Type system concepts

    Types, subtyping, gradual typing and consistency.

  2. Special types in annotations

    Any, None, Never, Optional and Union.

  3. Generics

    TypeVar, ParamSpec and generic classes.

  4. Protocols

    Structural subtyping.

  5. Callables

    Callable annotations and overloads.

  6. TypedDict

    Typed dictionary shape definitions.

  7. Dataclasses

    Dataclass transform semantics.

Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.

All 33