Fix a lot of test related typing issues

This commit is contained in:
Dave Halter committed 2026-02-10 19:38:55 +01:00
1 parent 6903bc25d5
commit 8cbb817b12
20 files changed
+47 -40

No files matched your search

+2 -2
View File
@@ -30,13 +30,13 @@ def test_find_module_basic():
def test_find_module_package():
file_io, is_package = _find_module('json')
assert file_io.path.parts[-2:] == ('json', '__init__.py')
assert file_io.path.parts[-2:] == ('json', '__init__.py') # type: ignore[union-attr]
assert is_package is True
def test_find_module_not_package():
file_io, is_package = _find_module('io')
assert file_io.path.name == 'io.py'
assert file_io.path.name == 'io.py' # type: ignore[union-attr]
assert is_package is False