Skip to content

Commit 74f3c2e

Browse files
committed
Help Ruff avoid a very long line
1 parent 011cb0a commit 74f3c2e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

git/index/base.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,13 @@ 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[Literal[git_diff.DiffConstants.INDEX], "Tree", "Commit", str, None] = git_diff.INDEX, # type: ignore[override]
1470+
other: Union[ # type: ignore[override]
1471+
Literal[git_diff.DiffConstants.INDEX],
1472+
"Tree",
1473+
"Commit",
1474+
str,
1475+
None,
1476+
] = git_diff.INDEX,
14711477
paths: Union[PathLike, List[PathLike], Tuple[PathLike, ...], None] = None,
14721478
create_patch: bool = False,
14731479
**kwargs: Any,

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