Skip to content

Mypy practice problems in Python

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 13 of 13

Title Difficulty
Check a Value Before You Use It Easy
Clean Up type: ignore Comments Easy
Describe a Dictionary's Keys with TypedDict Easy
Find the Redundant Flags in a mypy Command Easy
Find Where Any Leaks into Function Signatures Medium
Fix Multiprocessing Type Hints That Fail at Runtime Medium
Fix Your First mypy Errors Easy
Make a Protocol Member Read-Only with a Property Hard
Type a Handler Registry with a Callback Protocol Medium
Type a Lookup with a Default Using Overloads Hard
Work Out What __all__ and Re-exports Make Public Medium
Write a Minimal Stub for an Untyped Package Hard
Write a Protocol for Three Unrelated Classes Easy