Skip to content

Commit e304e4d

Browse files
authored
Merge pull request #4470 from mtreglia-gpsw/rename-args-EditableFinder
Rename arguments on _EditableFinder and _EditableNamespaceFinder
2 parents 634d81d + d6abb64 commit e304e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools/command/editable_wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ def _get_root(self):
805805
806806
class _EditableFinder: # MetaPathFinder
807807
@classmethod
808-
def find_spec(cls, fullname: str, _path=None, _target=None) -> ModuleSpec | None:
808+
def find_spec(cls, fullname: str, path=None, target=None) -> ModuleSpec | None: # type: ignore
809809
# Top-level packages and modules (we know these exist in the FS)
810810
if fullname in MAPPING:
811811
pkg_path = MAPPING[fullname]
@@ -851,7 +851,7 @@ def _paths(cls, fullname: str) -> list[str]:
851851
return [*paths, PATH_PLACEHOLDER]
852852
853853
@classmethod
854-
def find_spec(cls, fullname: str, _target=None) -> ModuleSpec | None:
854+
def find_spec(cls, fullname: str, target=None) -> ModuleSpec | None: # type: ignore
855855
if fullname in NAMESPACES:
856856
spec = ModuleSpec(fullname, None, is_package=True)
857857
spec.submodule_search_locations = cls._paths(fullname)

0 commit comments

Comments
 (0)