§ 2.11section 11 of 20·~2 min
Cheat sheet
@dataclass · field(default_factory=list) · asdict(obj) / Cls(**d) · @property · __repr__ / __eq__ · str | None · Literal[...] · TypedDict · raise XError("msg") · with open(...) as f · Path("a") / "b" · enumerate · zip · sorted(xs, key=lambda x: ...) · yield · @pytest.fixture · pytest.raises · @pytest.mark.parametrize · uv run ruff check . --fix