Skip to content

Commit

Permalink
Ignore type errors from importlib.metadata backport
Browse files Browse the repository at this point in the history
  • Loading branch information
martenlienen authored and Fizzadar committed May 26, 2024
1 parent 7afc644 commit 9b31e05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyinfra/api/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
import importlib_metadata
except ImportError:
import importlib.metadata as importlib_metadata
import importlib.metadata as importlib_metadata # type: ignore[no-redef]
from os import path
from typing import Iterable, Optional, Set

Expand Down
2 changes: 1 addition & 1 deletion pyinfra/api/connectors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
from importlib_metadata import entry_points
except ImportError:
from importlib.metadata import entry_points
from importlib.metadata import entry_points # type: ignore[assignment]


def _load_connector(entrypoint):
Expand Down

0 comments on commit 9b31e05

Please sign in to comment.