summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-03-01 20:18:01 +0000
committeryobmod <yobmod@gmail.com>2021-03-01 20:18:01 +0000
commita094ac1808f7c5fa0653ac075074bb2232223ac1 (patch)
tree53ad607894773eae18e9e110a2f72594f79c0311 /git/remote.py
parent5b0028e1e75e1ee0eea63ba78cb3160d49c1f3a3 (diff)
downloadgitpython-a094ac1808f7c5fa0653ac075074bb2232223ac1.tar.gz
add types to git.util and git.__init__
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index 65916614..53349ce7 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -34,6 +34,9 @@ from .refs import (
TagReference
)
+# typing-------------------------------------------------------
+
+from git.repo.Base import Repo
log = logging.getLogger('git.remote')
log.addHandler(logging.NullHandler())
@@ -403,7 +406,7 @@ class Remote(LazyMixin, Iterable):
:param repo: The repository we are a remote of
:param name: the name of the remote, i.e. 'origin'"""
- self.repo = repo
+ self.repo = repo # type: 'Repo'
self.name = name
if is_win: