diff options
author | Yobmod <yobmod@gmail.com> | 2021-08-02 23:30:27 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-08-02 23:30:27 +0100 |
commit | 8b8aa16ee247c6ce403db7178d6c0f9c4ccd529c (patch) | |
tree | e245d5aae27e559ba0d5ead2476485cd9f868320 /git/repo/base.py | |
parent | 5aa8c3401a860974db0126dc030e74bbddf217eb (diff) | |
download | gitpython-8b8aa16ee247c6ce403db7178d6c0f9c4ccd529c.tar.gz |
Improve type of repo.currently_rebasing_on()
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 344e8a71..c0229a84 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -1148,7 +1148,7 @@ class Repo(object): return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs) def archive(self, ostream: Union[TextIO, BinaryIO], treeish: Optional[str] = None, - prefix: Optional[str] = None, **kwargs: Any) -> 'Repo': + prefix: Optional[str] = None, **kwargs: Any) -> Repo: """Archive the tree at the given revision. :param ostream: file compatible stream object to which the archive will be written as bytes @@ -1195,7 +1195,7 @@ class Repo(object): clazz = self.__class__ return '<%s.%s %r>' % (clazz.__module__, clazz.__name__, self.git_dir) - def currently_rebasing_on(self) -> Union['SymbolicReference', Commit_ish, None]: + def currently_rebasing_on(self) -> Commit | None: """ :return: The commit which is currently being replayed while rebasing. |