Skip to content

Mypy practice problems in Python

Difficulty:
Category:
Tag:

Showing 10 of 10

Status Title Difficulty
__all__, re-export rules, and the accidental public API Medium
Auditing the Any surface of a module Medium
Callback protocols: closing the Callable[..., Any] hole Medium
@overload: one implementation, several honest signatures Hard
Protocols: what structural subtyping actually asserts Easy
Reading a mypy error: codes, reveal_type, assert_type Easy
Suppression hygiene: planning the minimum set of type: ignore Easy
The protocol attribute invariance trap Hard
Typing Multiprocessing: Where the Annotations Lie to You Medium
Writing a minimal .pyi for an untyped dependency Hard