Type of `Requirement.specs` is incorrect
Closed this issue · 0 comments
wch commented
The type of Requirement.specs
is declared to be List[str]
:
However, 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.