Skip to content

Commit

Permalink
CI: Ignore expected Mypy error for Python ≥3.11
Browse files Browse the repository at this point in the history
It seems like Mypy is not smart enough to realize that the
importlib_resources import is not used with these Python versions.
  • Loading branch information
victorlin committed Nov 7, 2023
1 parent 39c422a commit a29c935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextstrain/cli/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
if sys.version_info >= (3, 11):
from importlib.resources import files as _files, as_file as _as_file
else:
from importlib_resources import files as _files, as_file as _as_file
from importlib_resources import files as _files, as_file as _as_file # type: ignore[import]

from pathlib import Path
from typing import ContextManager
Expand Down

0 comments on commit a29c935

Please sign in to comment.