Skip to content

Commit 5ef6ade

Browse files
committed
Use broader type ignore for pkg_resources import
Apparently mypy changed for classifying the problem from import-untyped to import-not-found.
1 parent 0e64cf6 commit 5ef6ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdnum/numdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def _get_resource_stream(name: str) -> IO[bytes]:
178178
import importlib.resources
179179
return importlib.resources.files(__package__).joinpath(name).open('rb')
180180
except (ImportError, AttributeError): # pragma: no cover (older Python versions)
181-
import pkg_resources # type: ignore[import-untyped]
181+
import pkg_resources # type: ignore
182182
return pkg_resources.resource_stream(__name__, name) # type: ignore[no-any-return]
183183

184184

0 commit comments

Comments
 (0)