diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-31 15:51:34 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-31 15:51:34 +0100 |
commit | 15d1c01c132bc6fbdb21146578df35a8f7e2195e (patch) | |
tree | 5d681df06a79541e63fe2a2df7cd813dfd8dfcb0 /git/refs/remote.py | |
parent | f1e6e8d249bef0de10fd5dcd6605fde03f3a9c8d (diff) | |
download | gitpython-15d1c01c132bc6fbdb21146578df35a8f7e2195e.tar.gz |
Add type to symbolicreference.name()
Diffstat (limited to 'git/refs/remote.py')
-rw-r--r-- | git/refs/remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/refs/remote.py b/git/refs/remote.py index 8a680a4a..9b74d87f 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -9,7 +9,7 @@ __all__ = ["RemoteReference"] # typing ------------------------------------------------------------------ -from typing import Any, NoReturn, Union, TYPE_CHECKING +from typing import Any, Iterator, NoReturn, Union, TYPE_CHECKING from git.types import PathLike @@ -28,7 +28,7 @@ class RemoteReference(Head): @classmethod def iter_items(cls, repo: 'Repo', common_path: Union[PathLike, None] = None, remote: Union['Remote', None] = None, *args: Any, **kwargs: Any - ) -> 'RemoteReference': + ) -> Iterator['RemoteReference']: """Iterate remote references, and if given, constrain them to the given remote""" common_path = common_path or cls._common_path_default if remote is not None: |