We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Validation practice problems in Python
Difficulty:
Category:
Tag:
Showing 9 of 9
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| batched: page a stream, and validate before you yield | Easy | Primitives |
|
|
| Coerce to int at an untyped boundary | Medium | Primitives |
|
|
| Converters and validate-on-assignment: what attrs buys you | Medium | Primitives |
|
|
| Parse at the boundary, dataclasses in the core | Hard | End-to-End |
|
|
| Parse, don't validate: the boundary returns a narrower type | Medium | End-to-End |
|
|
| Replacing cast() with a TypeIs predicate | Medium | Framework |
|
|
| @runtime_checkable checks names, not types | Medium | Primitives |
|
|
| Sequence and mapping patterns: the two rules everyone gets wrong | Medium | Primitives |
|
|
| tomllib: turn dict[str, Any] into a typed config, or a named error | Medium | Primitives |
|