mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-11 17:19:12 +08:00
Fix a lot of test related typing issues
This commit is contained in:
1 parent
6903bc25d5
commit
8cbb817b12
20 files changed
+47
-40
No files matched your search
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user