diff options
author | Dominic <yobmod@gmail.com> | 2021-07-31 15:09:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 15:09:07 +0100 |
commit | ebe53dd624d1f08c3b298b29b88866c5c93f9d18 (patch) | |
tree | 9d7382356f3bb9a6fd1c028b27a9183c8be589e8 | |
parent | 212dbb08d1b1eba84d5372c81bcfe5aa880b0661 (diff) | |
download | gitpython-ebe53dd624d1f08c3b298b29b88866c5c93f9d18.tar.gz |
Update 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: |