diff options
author | Yobmod <yobmod@gmail.com> | 2021-05-17 13:11:57 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-05-17 13:11:57 +0100 |
commit | 025fe17da390c410e5bae4d6db0832afbfa26442 (patch) | |
tree | 677816fde797686f6ae07923e9a8698231a6fe28 /git/repo/base.py | |
parent | 595181da70978ed44983a6c0ca4cb6d982ba0e8b (diff) | |
download | gitpython-025fe17da390c410e5bae4d6db0832afbfa26442.tar.gz |
add types to index.fun.py
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index 607eb868..e23ebb1a 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -36,7 +36,7 @@ import gitdb from git.types import TBD, PathLike, Lit_config_levels from typing import (Any, BinaryIO, Callable, Dict, - Iterator, List, Mapping, Optional, + Iterator, List, Mapping, Optional, Sequence, TextIO, Tuple, Type, Union, NamedTuple, cast, TYPE_CHECKING) @@ -536,7 +536,7 @@ class Repo(object): return self.head.commit.tree return self.rev_parse(str(rev) + "^{tree}") - def iter_commits(self, rev: Optional[TBD] = None, paths: Union[PathLike, List[PathLike]] = '', + def iter_commits(self, rev: Optional[TBD] = None, paths: Union[PathLike, Sequence[PathLike]] = '', **kwargs: Any) -> Iterator[Commit]: """A list of Commit objects representing the history of a given ref/commit |