Skip to content

Commit

Permalink
maint: work around for vscode
Browse files Browse the repository at this point in the history
Handle `__path__` explicitly.
  • Loading branch information
Kirill888 committed Jun 24, 2024
1 parent 3e1dd64 commit 4f495b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions odc/geo/_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def is_dask_collection(_: Any) -> bool:
return False

return is_dask_collection
if name == "__path__":
loader = globals().get("__loader__")
if loader is not None:
return loader.path

raise AttributeError(f"module {__name__} has no attribute {name}")

Expand Down

0 comments on commit 4f495b0

Please sign in to comment.