Skip to content

Introspection practice problems in Python

Difficulty:
Category:
Tag:

Showing 6 of 6

Status Title Difficulty
Annotated: metadata the type checker deliberately ignores Medium
@dataclass is a code generator: what it emits Easy
Flatten a union at runtime Easy
Runtime introspection after PEP 649: Field.type is not a type Hard
__slots__, part 2: the eight things it breaks Hard
Writing generic code over dataclasses under --strict Hard