From 34e9850989e9748e94609925a754de4b2ba38216 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Sat, 31 Jul 2021 15:56:42 +0100 Subject: Add type to symbolicreference.iter_items() --- git/refs/symbolic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/refs/symbolic.py') diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index 779fe5a5..081cd74d 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -642,8 +642,8 @@ class SymbolicReference(object): # END for each sorted relative refpath @classmethod - # type: ignore[override] - def iter_items(cls, repo: 'Repo', common_path: Union[PathLike, None] = None, *args, **kwargs): + def iter_items(cls: Type[T_References], repo: 'Repo', common_path: Union[PathLike, None] = None, + *args: Any, **kwargs: Any) -> Iterator[T_References]: """Find all refs in the repository :param repo: is the Repo -- cgit v1.2.1