summaryrefslogtreecommitdiff
path: root/git/refs/remote.py
diff options
context:
space:
mode:
authorDominic <yobmod@gmail.com>2021-07-31 16:48:23 +0100
committerGitHub <noreply@github.com>2021-07-31 16:48:23 +0100
commit300330dfa2d2baece6d34b450523ac2a079c228b (patch)
tree4d4a3c59929fbc98c0617d8446405e745081f931 /git/refs/remote.py
parentd858916ce254287b70f2b3cc675ff7860171bfba (diff)
parent8eedc9d002da9bb085be4a82ffb5372f8f8ff7a2 (diff)
downloadgitpython-300330dfa2d2baece6d34b450523ac2a079c228b.tar.gz
Merge pull request #1307 from Yobmod/main
More types for symbolic.py
Diffstat (limited to 'git/refs/remote.py')
-rw-r--r--git/refs/remote.py4
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: