diff options
author | Yobmod <yobmod@gmail.com> | 2021-03-16 22:08:20 +0000 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-03-16 22:08:20 +0000 |
commit | 5232c89de10872a6df6227c5dcea169bd1aa6550 (patch) | |
tree | dc23db6e4a360c9a36321050bed7d5f445b4922f /git/remote.py | |
parent | 9562ae2e2436e052d31c40d5f9d3d0318f6c4575 (diff) | |
download | gitpython-5232c89de10872a6df6227c5dcea169bd1aa6550.tar.gz |
add types to git.__init__, compat, db, diff, exc, util
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py index 65916614..4194af1f 100644 --- a/git/remote.py +++ b/git/remote.py @@ -34,6 +34,14 @@ from .refs import ( TagReference ) +# typing------------------------------------------------------- + +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from git.repo.base import Repo + +# ------------------------------------------------------------- log = logging.getLogger('git.remote') log.addHandler(logging.NullHandler()) @@ -403,7 +411,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: |