Skip to content

Commit bdad3bb

Browse files
committed
Ignore types on compatibility objects
1 parent b260a0b commit bdad3bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

importlib_resources/tests/_compat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
try:
2-
from test.support import import_helper
2+
from test.support import import_helper # type: ignore
33
except ImportError:
44
try:
55
# Python 3.9 and earlier
6-
class import_helper:
6+
class import_helper: # type: ignore
77
from test.support import modules_setup, modules_cleanup
88
except ImportError:
99
from . import py27compat
1010

11-
class import_helper:
11+
class import_helper: # type: ignore
1212
modules_setup = staticmethod(py27compat.modules_setup)
1313
modules_cleanup = staticmethod(py27compat.modules_cleanup)
1414

1515

1616
try:
17-
from os import fspath
17+
from os import fspath # type: ignore
1818
except ImportError:
1919
# Python 3.5
20-
fspath = str
20+
fspath = str # type: ignore
2121

2222

2323
try:

0 commit comments

Comments
 (0)