diff options
author | Dominic <yobmod@gmail.com> | 2021-07-31 13:02:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 13:02:02 +0100 |
commit | b76b99184e8f0e16ba66a730846f3d61c72061fe (patch) | |
tree | 0279e1bccc5412126b2b2e08606eed82c9661d10 | |
parent | 9b9bfc2af1be03f5c006c2c79ec2d21e4f66f468 (diff) | |
download | gitpython-b76b99184e8f0e16ba66a730846f3d61c72061fe.tar.gz |
Update base.py
-rw-r--r-- | git/repo/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index bb8ddf13..355f9399 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -422,14 +422,14 @@ class Repo(object): def create_head(self, path: PathLike, commit: str = 'HEAD', force: bool = False, logmsg: Optional[str] = None - ) -> Head: + ) -> 'Head': """Create a new head within the repository. For more documentation, please see the Head.create method. :return: newly created Head Reference""" return Head.create(self, path, commit, logmsg, force) - def delete_head(self, *heads: 'SymbolicReference', **kwargs: Any) -> None: + def delete_head(self, *heads: 'Head', **kwargs: Any) -> None: """Delete the given heads :param kwargs: Additional keyword arguments to be passed to git-branch""" @@ -788,10 +788,10 @@ class Repo(object): return proc.replace("\\\\", "\\").replace('"', "").split("\n") @property - def active_branch(self) -> 'SymbolicReference': + def active_branch(self) -> Head: """The name of the currently active branch. - :return: Head to the active branch""" + # reveal_type(self.head.reference) # => Reference return self.head.reference def blame_incremental(self, rev: TBD, file: TBD, **kwargs: Any) -> Optional[Iterator['BlameEntry']]: |