We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 708fd84 commit 0a82cf5Copy full SHA for 0a82cf5
1 file changed
src/griffe/_internal/finder.py
@@ -125,7 +125,9 @@ def append_search_path(self, path: Path) -> None:
125
Parameters:
126
path: The path to append.
127
"""
128
- path = path.resolve()
+ self._append_search_path(path.resolve())
129
+
130
+ def _append_search_path(self, path: Path) -> None:
131
if path not in self.search_paths:
132
self.search_paths.append(path)
133
@@ -379,10 +381,6 @@ def _contents(self, path: Path) -> list[Path]:
379
381
self._paths_contents[path] = []
380
382
return self._paths_contents[path]
383
- def _append_search_path(self, path: Path) -> None:
- if path not in self.search_paths:
384
- self.search_paths.append(path)
385
-
386
def _extend_from_pth_files(self) -> None:
387
for path in self.search_paths:
388
for item in self._contents(path):
0 commit comments