| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0e1df29 commit 62c0823
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 3 | 3 | # This module is part of GitPython and is released under the | |
| 4 | 4 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ | |
| 5 | 5 | ||
| 6 | - import os | ||
| 7 | 6 | import re | |
| 8 | 7 | ||
| 9 | 8 | from git.cmd import handle_process_output | |
@@ -100,8 +99,8 @@ class Index: | |||
| 100 | 99 | ||
| 101 | 100 | def _process_diff_args( | |
| 102 | 101 | self, | |
| 103 | - args: List[Union[str, os.PathLike[str], "Diffable", Type["Index"]]], | ||
| 104 | - ) -> List[Union[str, os.PathLike[str], "Diffable", Type["Index"]]]: | ||
| 102 | + args: List[Union[PathLike, "Diffable", Type["Index"]]], | ||
| 103 | + ) -> List[Union[PathLike, "Diffable", Type["Index"]]]: | ||
| 105 | 104 | """ | |
| 106 | 105 | :return: | |
| 107 | 106 | Possibly altered version of the given args list. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -645,8 +645,8 @@ def write_tree(self) -> Tree: | |||
| 645 | 645 | ||
| 646 | 646 | def _process_diff_args( | |
| 647 | 647 | self, | |
| 648 | - args: List[Union[str, os.PathLike[str], "git_diff.Diffable", Type["git_diff.Diffable.Index"]]], | ||
| 649 | - ) -> List[Union[str, os.PathLike[str], "git_diff.Diffable", Type["git_diff.Diffable.Index"]]]: | ||
| 648 | + args: List[Union[PathLike, "git_diff.Diffable", Type["git_diff.Diffable.Index"]]], | ||
| 649 | + ) -> List[Union[PathLike, "git_diff.Diffable", Type["git_diff.Diffable.Index"]]]: | ||
| 650 | 650 | try: | |
| 651 | 651 | args.pop(args.index(self)) | |
| 652 | 652 | except IndexError: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments