Skip to content

Commit 2e31398

Browse files
committed
Ignore type checks on imports which are version-dependant
These are guaranteed to fail on at least one unused version of python, so they are ignored.
1 parent beee84d commit 2e31398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iso639/datafile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
from typing import Any
33

44
try:
5-
from importlib.resources import files
5+
from importlib.resources import files # type: ignore[attr-defined, import-not-found]
66
except ImportError:
77
# Compatibility for Python <3.9
8-
from importlib_resources import files
8+
from importlib_resources import files # type: ignore[no-redef, import-not-found]
99

1010

1111
FILENAMES = {

0 commit comments

Comments
 (0)