Commit 61a6487
Widen _validate_params parameter annotation to object
The annotation was ``Sequence[Any] | None`` but the function's
job is to REJECT non-sequence shapes (Mapping, set, frozenset)
at runtime. Static-type tools silenced the very inputs the
function exists to reject and admitted some it raises on —
the worst-of-both-worlds for a runtime type-gate. Test sites
carried ``# type: ignore[arg-type]`` for the rejection-path
inputs.
The dbapi sibling ``_reject_non_sequence_params`` already uses
``params: object`` for the same shape; mirror that. Drop the
test-side ``# type: ignore[arg-type]`` comments.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a5fc30c commit 61a6487
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | | - | |
| 1526 | + | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments