Skip to content

Commit 2053a3d

Browse files
committed
Remove old commented-out change_type assertions in git.diff
1 parent a05597a commit 2053a3d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

git/diff.py

-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@
4040

4141
Lit_change_type = Literal["A", "D", "C", "M", "R", "T", "U"]
4242

43-
44-
# def is_change_type(inp: str) -> TypeGuard[Lit_change_type]:
45-
# # return True
46-
# return inp in ['A', 'D', 'C', 'M', 'R', 'T', 'U']
47-
4843
# ------------------------------------------------------------------------
4944

5045

@@ -693,7 +688,6 @@ def _handle_diff_line(lines_bytes: bytes, repo: "Repo", index: DiffIndex) -> Non
693688
# Change type can be R100
694689
# R: status letter
695690
# 100: score (in case of copy and rename)
696-
# assert is_change_type(_change_type[0]), f"Unexpected value for change_type received: {_change_type[0]}"
697691
change_type: Lit_change_type = cast(Lit_change_type, _change_type[0])
698692
score_str = "".join(_change_type[1:])
699693
score = int(score_str) if score_str.isdigit() else None

0 commit comments

Comments
 (0)