@@ -82,16 +82,16 @@ class Diffable(object):
8282 class Index (object ):
8383 pass
8484
85- def _process_diff_args (self , args : List [Union [PathLike , 'Diffable' , Type ['Diffable.Index' ]]]
86- ) -> List [Union [PathLike , 'Diffable' , Type ['Diffable.Index' ]]]:
85+ def _process_diff_args (self , args : List [Union [str , 'Diffable' , Type ['Diffable.Index' ], object ]]
86+ ) -> List [Union [str , 'Diffable' , Type ['Diffable.Index' ], object ]]:
8787 """
8888 :return:
8989 possibly altered version of the given args list.
9090 Method is called right before git command execution.
9191 Subclasses can use it to alter the behaviour of the superclass"""
9292 return args
9393
94- def diff (self , other : Union [Type ['Index' ], 'Tree' , 'Commit' , None , str ] = Index , # object for git.NULL_TREE
94+ def diff (self , other : Union [Type ['Index' ], 'Tree' , 'Commit' , None , str , object ] = Index ,
9595 paths : Union [PathLike , List [PathLike ], Tuple [PathLike , ...], None ] = None ,
9696 create_patch : bool = False , ** kwargs : Any ) -> 'DiffIndex' :
9797 """Creates diffs between two items being trees, trees and index or an
@@ -124,7 +124,7 @@ def diff(self, other: Union[Type['Index'], 'Tree', 'Commit', None, str] = Index,
124124 :note:
125125 On a bare repository, 'other' needs to be provided as Index or as
126126 as Tree/Commit, or a git command error will occur"""
127- args : List [Union [PathLike , Diffable , Type ['Diffable.Index' ]]] = []
127+ args : List [Union [PathLike , Diffable , Type ['Diffable.Index' ], object ]] = []
128128 args .append ("--abbrev=40" ) # we need full shas
129129 args .append ("--full-index" ) # get full index paths, not only filenames
130130
0 commit comments