Skip to content

Commit 78af070

Browse files
committed
utils.git: Add typing info, fix grammar in comments - .changes_survival()
1 parent 9bba76d commit 78af070

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/diffannotator/utils/git.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,16 +2029,16 @@ def changes_survival(self, commit: str, prev: Optional[str] = None,
20292029

20302030
changes_info, file_diff_lines, patch = self.changed_lines_extents(commit, prev, side=DiffSide.POST)
20312031

2032-
# map from file name in changed files to unidiff.PatchedFile for that file
2033-
patched_files_map = {}
2032+
# map from the file name in changed files to unidiff.PatchedFile for that file
2033+
patched_files_map: dict[str, unidiff.PatchedFile] = {}
20342034
patched_file: unidiff.PatchedFile
20352035
for patched_file in patch:
2036-
# same key as used in .changed_lines_extents()
2036+
# the same key as used in .changed_lines_extents()
20372037
patched_files_map[decode_c_quoted_str(patched_file.path)] = patched_file
20382038

20392039
for file_path, line_extents in changes_info.items():
20402040
if not line_extents:
2041-
# empty changes, for example pure rename
2041+
# empty changes, for example, pure rename
20422042
continue
20432043

20442044
# TODO: make it configurable

0 commit comments

Comments
 (0)