Skip to content

Commit

Permalink
🧎‍♀️ Genuflect to the types.
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
jaraco committed Aug 21, 2024
1 parent 6413a18 commit 702dc71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backports/entry_points_selectable.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
from importlib_metadata import distributions, EntryPoint
except ImportError:
try:
import importlib.metadata as metadata
from importlib.metadata import distributions, EntryPoint
import importlib.metadata as metadata # type: ignore[no-redef]
from importlib.metadata import distributions, EntryPoint # type: ignore[assignment]
except ImportError:
from importlib_metadata import ( # type: ignore[import-not-found]
from importlib_metadata import (
distributions,
EntryPoint,
)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type = [
"pytest-mypy",

# local
"importlib_metadata",
]


Expand Down

0 comments on commit 702dc71

Please sign in to comment.