| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0b99041 commit 011cb0a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1467,9 +1467,7 @@ def reset( | |||
| 1467 | 1467 | # does not handle NULL_TREE for `other`. (The suppressed mypy error is about this.) | |
| 1468 | 1468 | def diff( | |
| 1469 | 1469 | self, | |
| 1470 | - other: Union[ # type: ignore[override] | ||
| 1471 | - Literal[git_diff.DiffConstants.INDEX], "Tree", "Commit", str, None | ||
| 1472 | - ] = git_diff.INDEX, | ||
| 1470 | + other: Union[Literal[git_diff.DiffConstants.INDEX], "Tree", "Commit", str, None] = git_diff.INDEX, # type: ignore[override] | ||
| 1473 | 1471 | paths: Union[PathLike, List[PathLike], Tuple[PathLike, ...], None] = None, | |
| 1474 | 1472 | create_patch: bool = False, | |
| 1475 | 1473 | **kwargs: Any, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,13 +138,11 @@ def short_to_long(odb: "GitCmdObjectDB", hexsha: str) -> Optional[bytes]: | |||
| 138 | 138 | ||
| 139 | 139 | ||
| 140 | 140 | @overload | |
| 141 | - def name_to_object(repo: "Repo", name: str, return_ref: Literal[False] = ...) -> AnyGitObject: | ||
| 142 | - ... | ||
| 141 | + def name_to_object(repo: "Repo", name: str, return_ref: Literal[False] = ...) -> AnyGitObject: ... | ||
| 143 | 142 | ||
| 144 | 143 | ||
| 145 | 144 | @overload | |
| 146 | - def name_to_object(repo: "Repo", name: str, return_ref: Literal[True]) -> Union[AnyGitObject, SymbolicReference]: | ||
| 147 | - ... | ||
| 145 | + def name_to_object(repo: "Repo", name: str, return_ref: Literal[True]) -> Union[AnyGitObject, SymbolicReference]: ... | ||
| 148 | 146 | ||
| 149 | 147 | ||
| 150 | 148 | def name_to_object(repo: "Repo", name: str, return_ref: bool = False) -> Union[AnyGitObject, SymbolicReference]: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments