| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a05597a commit 2053a3d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,11 +40,6 @@ | |||
| 40 | 40 | ||
| 41 | 41 | Lit_change_type = Literal["A", "D", "C", "M", "R", "T", "U"] | |
| 42 | 42 | ||
| 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 | - | ||
| 48 | 43 | # ------------------------------------------------------------------------ | |
| 49 | 44 | ||
| 50 | 45 | ||
@@ -693,7 +688,6 @@ def _handle_diff_line(lines_bytes: bytes, repo: "Repo", index: DiffIndex) -> Non | |||
| 693 | 688 | # Change type can be R100 | |
| 694 | 689 | # R: status letter | |
| 695 | 690 | # 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]}" | ||
| 697 | 691 | change_type: Lit_change_type = cast(Lit_change_type, _change_type[0]) | |
| 698 | 692 | score_str = "".join(_change_type[1:]) | |
| 699 | 693 | score = int(score_str) if score_str.isdigit() else None | |
| Back | FazBrowse Home | New Git URL |
0 commit comments