Closed wch closed 7 months ago
The type of Requirement.specs is declared to be List[str]: https://github.com/madpah/requirements-parser/blob/1ce923617147dd984c280d56cb1f02fcd3589a7c/requirements/requirement.py#L90
Requirement.specs
List[str]
However, the actual type is List[Tuple[str, str]], like [('>', '1.5'), ('<', '1.6')].
List[Tuple[str, str]]
[('>', '1.5'), ('<', '1.6')]
The value is assigned here, and the type of the source value is declared as [list[tuple[str, str]]. The # type: ignore isn't needed on that line.
[list[tuple[str, str]]
# type: ignore
The type of
Requirement.specs
is declared to beList[str]
: https://github.com/madpah/requirements-parser/blob/1ce923617147dd984c280d56cb1f02fcd3589a7c/requirements/requirement.py#L90However, the actual type is
List[Tuple[str, str]]
, like[('>', '1.5'), ('<', '1.6')]
.The value is assigned here, and the type of the source value is declared as
[list[tuple[str, str]]
. The# type: ignore
isn't needed on that line.