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
Closed

support Sequence #304

samuelcolvin opened this issue Nov 16, 2018 · 3 comments

Comments

@samuelcolvin
Copy link
Owner

@samuelcolvin samuelcolvin commented Nov 16, 2018

Feature Request

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

@samuelcolvin
Copy link
Owner Author

@samuelcolvin samuelcolvin commented Nov 16, 2018

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

@pilosus
Copy link
Contributor

@pilosus 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
Copy link
Owner Author

@samuelcolvin 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 mentioned this issue Mar 21, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants