Skip to content

Commit

Permalink
Ignore type checks on imports which are version-dependant
Browse files Browse the repository at this point in the history
These are guaranteed to fail on at least one unused version of python, so they are ignored.
  • Loading branch information
LachJones committed Oct 27, 2024
1 parent beee84d commit 2e31398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iso639/datafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from typing import Any

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


FILENAMES = {
Expand Down

0 comments on commit 2e31398

Please sign in to comment.