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

Add a member validating fixed size inhomogeneous tuple #130

Open
MatthieuDartiailh opened this issue Sep 21, 2021 · 1 comment
Open

Add a member validating fixed size inhomogeneous tuple #130

MatthieuDartiailh opened this issue Sep 21, 2021 · 1 comment

Comments

@MatthieuDartiailh
Copy link
Member

Currently the Tuple member can only validate tuple which are homogeneous in type and we do not validate the length. This is at odd with typing.Tuple which can be used for fixed sized tuple and in-homogeneous types. We could add a member mimicking typing.Tuple.

Is such a feature of interest to others ?

@MatthieuDartiailh
Copy link
Member Author

I am also interested in bikeshedding the name of this member (we cannot just use Tuple for backward compatibility reasons):

  • SizedTuple
  • FixedTuple
  • ...

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

1 participant