diff --git a/git/index/base.py b/git/index/base.py index 74ad65394..59b019f0f 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -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,