Skip to content

Commit

Permalink
Help Ruff avoid a very long line
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Mar 14, 2024
1 parent 011cb0a commit 74f3c2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion git/index/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,13 @@ def reset(
# does not handle NULL_TREE for `other`. (The suppressed mypy error is about this.)
def diff(
self,
other: Union[Literal[git_diff.DiffConstants.INDEX], "Tree", "Commit", str, None] = git_diff.INDEX, # type: ignore[override]
other: Union[ # type: ignore[override]
Literal[git_diff.DiffConstants.INDEX],
"Tree",
"Commit",
str,
None,
] = git_diff.INDEX,
paths: Union[PathLike, List[PathLike], Tuple[PathLike, ...], None] = None,
create_patch: bool = False,
**kwargs: Any,
Expand Down

0 comments on commit 74f3c2e

Please sign in to comment.