Commit 8d3894c
committed
typing: Make less use of ParamSpec
This is a partial revert of 1078647.
mypy (and possibly others) are not able to correctly resolve a ParamSpec
for an overridden method. This causes a lot of false positives when
using assertRaises (as a function) on methods with overrides, which
cannot be resolved except through `type: ignore` statements. In
addition, it's often desirable to test functions with incorrect types to
assert runtime validation. Given these two issues, it's easier to just
drop the use of ParamSpec.
Signed-off-by: Stephen Finucane <stephen@that.guru>1 parent 08ec4e6 commit 8d3894c
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
581 | | - | |
582 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | | - | |
591 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| |||
0 commit comments