Skip to content

Commit

Permalink
Merge pull request #4470 from mtreglia-gpsw/rename-args-EditableFinder
Browse files Browse the repository at this point in the history
Rename arguments on _EditableFinder and _EditableNamespaceFinder
  • Loading branch information
abravalheri authored Jul 11, 2024
2 parents 634d81d + d6abb64 commit e304e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setuptools/command/editable_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def _get_root(self):
class _EditableFinder: # MetaPathFinder
@classmethod
def find_spec(cls, fullname: str, _path=None, _target=None) -> ModuleSpec | None:
def find_spec(cls, fullname: str, path=None, target=None) -> ModuleSpec | None: # type: ignore
# Top-level packages and modules (we know these exist in the FS)
if fullname in MAPPING:
pkg_path = MAPPING[fullname]
Expand Down Expand Up @@ -851,7 +851,7 @@ def _paths(cls, fullname: str) -> list[str]:
return [*paths, PATH_PLACEHOLDER]
@classmethod
def find_spec(cls, fullname: str, _target=None) -> ModuleSpec | None:
def find_spec(cls, fullname: str, target=None) -> ModuleSpec | None: # type: ignore
if fullname in NAMESPACES:
spec = ModuleSpec(fullname, None, is_package=True)
spec.submodule_search_locations = cls._paths(fullname)
Expand Down

0 comments on commit e304e4d

Please sign in to comment.