Skip to content

Commit 96fd45b

Browse files
committed
fix: Fix relative paths for old versions when checking API
1 parent 7302f17 commit 96fd45b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/griffe/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _location(self) -> Path:
123123
parts = self._relative_filepath.parts
124124
for index, part in enumerate(parts):
125125
if part.startswith(WORKTREE_PREFIX):
126-
return Path(*parts[index + 3 :])
126+
return Path(*parts[index + 2 :])
127127
return self._relative_filepath
128128

129129
@property

0 commit comments

Comments
 (0)