Skip to content

Commit

Permalink
upath.registry: fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 28, 2023
1 parent 933ae85 commit d2b6550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upath/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def __init__(self) -> None:
else:
eps = entry_points().get(_ENTRY_POINT_GROUP, [])
self._entries = {ep.name: ep for ep in eps}
self._m = ChainMap({}, self.known_implementations)
self._m = ChainMap({}, self.known_implementations) # type: ignore

def __contains__(self, item: str) -> bool:
def __contains__(self, item: object) -> bool:
return item in set().union(self._m, self._entries)

def __getitem__(self, item: str) -> type[upath.core.UPath]:
Expand Down

0 comments on commit d2b6550

Please sign in to comment.