Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should use List[T] instead of List[T, ...] #9

Closed
gvanrossum opened this issue Jan 21, 2016 · 1 comment
Closed

Should use List[T] instead of List[T, ...] #9

gvanrossum opened this issue Jan 21, 2016 · 1 comment

Comments

@gvanrossum
Copy link

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.)

@gvanrossum gvanrossum changed the title More forms of invalid PYI generated Should use List[T] instead of List[T, ...] Jan 21, 2016
matthiaskramm added a commit that referenced this issue Jan 25, 2016
See #9
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=112819092
@matthiaskramm
Copy link
Contributor

Fixed.

matthiaskramm added a commit that referenced this issue Jul 21, 2016
See #9

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=112819092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants