diff options
author | Dominic <yobmod@gmail.com> | 2021-09-24 03:52:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 03:52:16 +0100 |
commit | 1746b971387eccfc6fb4e34d3c334079bbb14b2e (patch) | |
tree | cd6d4a755c41c203b6d1c14996d0025318579efc /git/remote.py | |
parent | 2d15c5a601e698e8f7859e821950cad0701b756d (diff) | |
parent | 5f4b4dbff46fae4c899f5573aea5a7266a41eeeb (diff) | |
download | gitpython-1746b971387eccfc6fb4e34d3c334079bbb14b2e.tar.gz |
Merge pull request #1346 from rra/type-fixes
Fix typing issues with delete_head and Remote.add
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py index 9917c431..2cf5678b 100644 --- a/git/remote.py +++ b/git/remote.py @@ -665,7 +665,9 @@ class Remote(LazyMixin, IterableObj): return cls(repo, name) # add is an alias - add = create + @ classmethod + def add(cls, repo: 'Repo', name: str, url: str, **kwargs: Any) -> 'Remote': + return cls.create(repo, name, url, **kwargs) @ classmethod def remove(cls, repo: 'Repo', name: str) -> str: |