general/ci: mypy check tests

This commit is contained in:
Dima Gerasimov 2023-02-20 23:57:31 +00:00
parent bf6a96a44d
commit 05da310693
7 changed files with 37 additions and 14 deletions

View file

@ -23,7 +23,8 @@ def test_with_error(with_config, tmp_path: Path) -> None:
g = root / 'garbage.pdf'
g.write_text('garbage')
from my.config import pdfs
del pdfs.roots # meh. otherwise legacy config value 'wins'
# meh. otherwise legacy config value 'wins'
del pdfs.roots # type: ignore[attr-defined]
pdfs.paths = (root,)
from my.pdfs import annotations