Skip to content

Commit 011cb0a

Browse files
committed
Apply Ruff auto-fixes not included in merge
1 parent 0b99041 commit 011cb0a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

git/index/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,9 +1467,7 @@ def reset(
14671467
# does not handle NULL_TREE for `other`. (The suppressed mypy error is about this.)
14681468
def diff(
14691469
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]
14731471
paths: Union[PathLike, List[PathLike], Tuple[PathLike, ...], None] = None,
14741472
create_patch: bool = False,
14751473
**kwargs: Any,

git/repo/fun.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,11 @@ def short_to_long(odb: "GitCmdObjectDB", hexsha: str) -> Optional[bytes]:
138138

139139

140140
@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: ...
143142

144143

145144
@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]: ...
148146

149147

150148
def name_to_object(repo: "Repo", name: str, return_ref: bool = False) -> Union[AnyGitObject, SymbolicReference]:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy