diff options
author | Yobmod <yobmod@gmail.com> | 2021-05-15 22:58:47 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-05-15 22:58:47 +0100 |
commit | 4dff2004308a7a1e5b9afc7a5b3b9cb515e12514 (patch) | |
tree | e6b61681ae98d18430d9955cd2e697e87e13dada /git/index/base.py | |
parent | 96364599258e7e036298dd5737918bde346ec195 (diff) | |
download | gitpython-4dff2004308a7a1e5b9afc7a5b3b9cb515e12514.tar.gz |
Add initial types to IndexFile .init() to _to_relative_path()
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/index/base.py b/git/index/base.py index 4dcfb30d..6a4bacc4 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -490,8 +490,8 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): return path_map @classmethod - def entry_key(cls, entry: Union[Tuple[BaseIndexEntry], Tuple[PathLike, StageType]]) -> Tuple[PathLike, StageType]: - return entry_key(entry) + def entry_key(cls, *entry: Union[Tuple[BaseIndexEntry], Tuple[PathLike, StageType]]) -> Tuple[PathLike, StageType]: + return entry_key(*entry) def resolve_blobs(self, iter_blobs: Iterator[Blob]) -> 'IndexFile': """Resolve the blobs given in blob iterator. This will effectively remove the |