From 59e14881910bf836c43b7d319ea08ab321ccfb39 Mon Sep 17 00:00:00 2001 From: sinoroc Date: Thu, 28 May 2020 20:24:32 +0200 Subject: [PATCH] Fix type hint for '__iter__' in 'SpecifierSet' (#310) --- packaging/specifiers.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packaging/specifiers.py b/packaging/specifiers.py index fe09bb1d..eb6c4c9a 100644 --- a/packaging/specifiers.py +++ b/packaging/specifiers.py @@ -14,17 +14,7 @@ from .version import Version, LegacyVersion, parse if TYPE_CHECKING: # pragma: no cover - from typing import ( - List, - Dict, - Union, - Iterable, - Iterator, - Optional, - Callable, - Tuple, - FrozenSet, - ) + from typing import List, Dict, Union, Iterable, Iterator, Optional, Callable, Tuple ParsedVersion = Union[Version, LegacyVersion] UnparsedVersion = Union[Version, LegacyVersion, str] @@ -750,7 +740,7 @@ def __len__(self): return len(self._specs) def __iter__(self): - # type: () -> Iterator[FrozenSet[_IndividualSpecifier]] + # type: () -> Iterator[_IndividualSpecifier] return iter(self._specs) @property