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

support Sequence #304

Closed
samuelcolvin opened this Issue Nov 16, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@samuelcolvin
Copy link
Owner

samuelcolvin commented Nov 16, 2018

Feature Request

Sequence should be supported, I guess list and tuple should work, anything else?

@samuelcolvin

This comment has been minimized.

Copy link
Owner Author

samuelcolvin commented Nov 16, 2018

Useful when you want a Tuple but don't yet know it's length.

@pilosus

This comment has been minimized.

Copy link
Contributor

pilosus commented Mar 20, 2019

Useful when you want a Tuple but don't yet know it's length.

Isn't a Sequence type always has __len__ and __getitem__ methods, so length should be known.
Could you give an example?

I guess list and tuple should work, anything else?

range maybe?

@samuelcolvin

This comment has been minimized.

Copy link
Owner Author

samuelcolvin commented Mar 20, 2019

I guess the Tuple case we can support with Tuple[int, ...] etc.

Point of Sequence would just be to allow either List or Tuple.

@pilosus pilosus referenced this issue Mar 21, 2019

Merged

Sequence support #428

4 of 4 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.