From 5cbcf7c7bfd5c0cd2a5f8c8817b8e4863f133022 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 15 Nov 2021 19:04:04 +0100 Subject: [PATCH] Fix `galaxy.collection.galaxy_api_proxy` types --- lib/ansible/galaxy/collection/galaxy_api_proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/galaxy/collection/galaxy_api_proxy.py b/lib/ansible/galaxy/collection/galaxy_api_proxy.py index 9359375bda6..5b294682bad 100644 --- a/lib/ansible/galaxy/collection/galaxy_api_proxy.py +++ b/lib/ansible/galaxy/collection/galaxy_api_proxy.py @@ -14,7 +14,7 @@ except ImportError: TYPE_CHECKING = False if TYPE_CHECKING: - from typing import Dict, Iterable, Tuple + from typing import Dict, Iterable, Iterator, Tuple from ansible.galaxy.api import CollectionVersionMetadata from ansible.galaxy.collection.concrete_artifact_manager import ( ConcreteArtifactsManager, @@ -41,7 +41,7 @@ class MultiGalaxyAPIProxy: self._concrete_art_mgr = concrete_artifacts_manager def _get_collection_versions(self, requirement): - # type: (Requirement, Iterator[GalaxyAPI]) -> Iterator[Tuple[GalaxyAPI, str]] + # type: (Requirement) -> Iterator[Tuple[GalaxyAPI, str]] """Helper for get_collection_versions. Yield api, version pairs for all APIs,