diff options
author | Yobmod <yobmod@gmail.com> | 2021-06-24 23:14:13 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-06-24 23:14:13 +0100 |
commit | fe594eb345fbefaee3b82436183d6560991724cc (patch) | |
tree | 0a86487dd03d298b255fa77e215d3c9aada2a700 /git/util.py | |
parent | affee359af09cf7971676263f59118de82e7e059 (diff) | |
download | gitpython-fe594eb345fbefaee3b82436183d6560991724cc.tar.gz |
Add T_Tre_cache TypeVar
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/util.py b/git/util.py index 0783918d..bcc634ec 100644 --- a/git/util.py +++ b/git/util.py @@ -672,7 +672,7 @@ class Actor(object): @classmethod def _main_actor(cls, env_name: str, env_email: str, - config_reader: Union[None, GitConfigParser, SectionConstraint] = None) -> 'Actor': + config_reader: Union[None, 'GitConfigParser', 'SectionConstraint'] = None) -> 'Actor': actor = Actor('', '') user_id = None # We use this to avoid multiple calls to getpass.getuser() @@ -701,7 +701,7 @@ class Actor(object): return actor @classmethod - def committer(cls, config_reader: Union[None, GitConfigParser, SectionConstraint] = None) -> 'Actor': + def committer(cls, config_reader: Union[None, 'GitConfigParser', 'SectionConstraint'] = None) -> 'Actor': """ :return: Actor instance corresponding to the configured committer. It behaves similar to the git implementation, such that the environment will override @@ -748,7 +748,7 @@ class Stats(object): from git.types import Total_TD, Files_TD - def __init__(self, total: Total_TD, files: Dict[str, Files_TD]): + def __init__(self, total: Total_TD, files: Dict[PathLike, Files_TD]): self.total = total self.files = files |