Skip to content

Commit

Permalink
Use named arguments in DaskFinder.find_spec
Browse files Browse the repository at this point in the history
Follow the base class argument names as in `MetaPathFinder.find_spec` per
https://docs.python.org/3.13/library/importlib.html#importlib.abc.MetaPathFinder.find_spec

This allows find_spec callers to use keyword arguments for `path` and `target`.
  • Loading branch information
pavoljuhas committed Feb 28, 2025
1 parent 7bb1555 commit 422ec60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapids_dask_dependency/dask_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def disable(self, name):
finally:
self._blocklist.remove(name)

def find_spec(self, fullname: str, _, __=None):
def find_spec(self, fullname: str, path, target=None):
if fullname in self._blocklist:
return None
if (
Expand Down

0 comments on commit 422ec60

Please sign in to comment.