Commit 22f478c
committed
Remove redundant casts in
mypy 2.1.0 narrows `key` correctly via `isinstance(key, self._crypto_key_types)`,
so the explicit `cast()` calls are redundant. Surfaced by CI on the previous
commit.RSAAlgorithm.prepare_key and ECAlgorithm.prepare_key
1 parent 95791b1 commit 22f478c
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
641 | | - | |
642 | | - | |
| 640 | + | |
| 641 | + | |
643 | 642 | | |
644 | 643 | | |
645 | 644 | | |
| |||
0 commit comments