Skip to content

Commit 105d1d3

Browse files
Update api/project.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 40c0827 commit 105d1d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def from_local_repository(cls, path: Path|str):
7676

7777
return cls(name, path, url)
7878

79-
def analyze_sources(self, ignore: Optional[List[str]] = []) -> Graph:
79+
def analyze_sources(self, ignore: Optional[List[str]] = None) -> Graph:
80+
if ignore is None:
81+
ignore = []
8082
analyzer = SourceAnalyzer()
8183
analyzer.analyze_local_folder(self.path, self.graph, ignore)
8284

0 commit comments

Comments
 (0)