diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-05-12 09:53:42 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-05-12 09:53:42 +0800 |
commit | 2448ac4ca337665eb22b9dd5ca096ef625a8f52b (patch) | |
tree | 9867f5a8b543000e56c70860ad59637d1fb33bbe /git/repo/base.py | |
parent | 96f8f17d5d63c0e0c044ac3f56e94a1aa2e45ec3 (diff) | |
parent | 37cef2340d3e074a226c0e81eaf000b5b90dfa55 (diff) | |
download | gitpython-2448ac4ca337665eb22b9dd5ca096ef625a8f52b.tar.gz |
Merge branch 'addtypes'
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index ed0a810e..94c6e30b 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -34,8 +34,7 @@ import gitdb # typing ------------------------------------------------------ -from git.compat.typing import Literal -from git.types import TBD, PathLike +from git.types import TBD, PathLike, Literal from typing import (Any, BinaryIO, Callable, Dict, Iterator, List, Mapping, Optional, TextIO, Tuple, Type, Union, @@ -434,7 +433,7 @@ class Repo(object): """Delete the given tag references""" return TagReference.delete(self, *tags) - def create_remote(self, name: str, url: PathLike, **kwargs: Any) -> Remote: + def create_remote(self, name: str, url: str, **kwargs: Any) -> Remote: """Create a new remote. For more information, please see the documentation of the Remote.create @@ -443,7 +442,7 @@ class Repo(object): :return: Remote reference""" return Remote.create(self, name, url, **kwargs) - def delete_remote(self, remote: 'Remote') -> Type['Remote']: + def delete_remote(self, remote: 'Remote') -> str: """Delete the given remote.""" return Remote.remove(self, remote) |