summaryrefslogtreecommitdiff
path: root/git/refs/reference.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-31 17:25:46 +0100
committerYobmod <yobmod@gmail.com>2021-07-31 17:25:46 +0100
commitf2012e599e388580bf8823a23ff63a201e0bf4c4 (patch)
treef7c0242ca7b110da38435e28210b9ea4b19deb7f /git/refs/reference.py
parente8442eead72bfc2a547234d0289d0f90642167fd (diff)
downloadgitpython-f2012e599e388580bf8823a23ff63a201e0bf4c4.tar.gz
Add type to symbolicreference.set_object()
Diffstat (limited to 'git/refs/reference.py')
-rw-r--r--git/refs/reference.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/refs/reference.py b/git/refs/reference.py
index bc2c6e80..539691e7 100644
--- a/git/refs/reference.py
+++ b/git/refs/reference.py
@@ -63,8 +63,8 @@ class Reference(SymbolicReference, LazyMixin, IterableObj):
#{ Interface
# @ReservedAssignment
- def set_object(self, object: Union[Commit_ish, 'SymbolicReference'], logmsg: Union[str, None] = None
- ) -> 'SymbolicReference':
+ def set_object(self, object: Union[Commit_ish, 'SymbolicReference', str], logmsg: Union[str, None] = None
+ ) -> 'Reference':
"""Special version which checks if the head-log needs an update as well
:return: self"""
oldbinsha = None