You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytype uses List[T, ...] where PEP 484 just has List[T].
(Explanation: PEP 484 does use Tuple[T, ...] for a homogeneous tuple of Ts, since Tuple[T] means a tuple of length 1 containing a T, so that we also have Tuple[T, S] meaning a tuple of length 2 containing a T and an S. But we don't support that for List or other Sequence types -- it's purely a Tuple thing.)
The text was updated successfully, but these errors were encountered:
gvanrossum
changed the title
More forms of invalid PYI generated
Should use List[T] instead of List[T, ...]
Jan 21, 2016
pytype uses
List[T, ...]
where PEP 484 just hasList[T]
.(Explanation: PEP 484 does use
Tuple[T, ...]
for a homogeneous tuple of Ts, sinceTuple[T]
means a tuple of length 1 containing a T, so that we also haveTuple[T, S]
meaning a tuple of length 2 containing a T and an S. But we don't support that for List or other Sequence types -- it's purely a Tuple thing.)The text was updated successfully, but these errors were encountered: