Commit f3a1c3e
committed
fix(mypy): Restore t.cast for MockTranslator in test_nodes.py
why: just watch-mypy uses find to include all .py files, bypassing
pyproject.toml's exclude setting for tests/docs/.
what:
- Restore TYPE_CHECKING import for HTML5Translator
- Restore t.cast calls for MockTranslator arguments1 parent 426300d commit f3a1c3e
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
469 | 472 | | |
470 | 473 | | |
471 | 474 | | |
472 | | - | |
473 | | - | |
| 475 | + | |
| 476 | + | |
474 | 477 | | |
475 | 478 | | |
476 | 479 | | |
| |||
0 commit comments