Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2053a3d

Browse files
committed
Remove old commented-out change_type assertions in git.diff
1 parenta05597a commit2053a3d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

‎git/diff.py

Lines changed: 0 additions & 6 deletions
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)ifscore_str.isdigit()elseNone

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp