summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic <yobmod@gmail.com>2021-07-31 13:18:32 +0100
committerGitHub <noreply@github.com>2021-07-31 13:18:32 +0100
commit995547aa9b2ca1f1d7795d91a916f83c5d1a96f9 (patch)
treea5f1c90ad260486e50f38c64202198571b9c1036
parente2d5e0e42a7bb664560133d1c3efeb7b4686f7c7 (diff)
downloadgitpython-995547aa9b2ca1f1d7795d91a916f83c5d1a96f9.tar.gz
Update reference.py
-rw-r--r--git/refs/reference.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/refs/reference.py b/git/refs/reference.py
index 64662281..bc2c6e80 100644
--- a/git/refs/reference.py
+++ b/git/refs/reference.py
@@ -62,7 +62,9 @@ class Reference(SymbolicReference, LazyMixin, IterableObj):
#{ Interface
- def set_object(self, object: Commit_ish, logmsg: Union[str, None] = None) -> 'Reference': # @ReservedAssignment
+ # @ReservedAssignment
+ def set_object(self, object: Union[Commit_ish, 'SymbolicReference'], logmsg: Union[str, None] = None
+ ) -> 'SymbolicReference':
"""Special version which checks if the head-log needs an update as well
:return: self"""
oldbinsha = None