We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from collections import namedtuple NT = namedtuple('NT', ['a', 'b']) nt = NT(1, 2) t = (1, 2) Schema((int, int))(nt) # => Invalid Schema((int, int))(t) # => Valid Schema(NT(int, int))(nt) # => Invalid Schema(NT(int, int))(t) # => Valid
Given that NT(1, 2) == (1, 2) => True I'd expect all of the above cases to return as valid.
NT(1, 2) == (1, 2) => True
The text was updated successfully, but these errors were encountered:
@dangitall Thanks for reporting the issue.
Yeah, this seems like a bug in Voluptuous. Can you please submit a PR for the same?
Sorry, something went wrong.
Validate namedtuples as tuples
cfc8536
namedtuples can't be initialized with a tuple. Detect that datatype and initialize it with *args notation. Resolves alecthomas#230
No branches or pull requests
Given that
NT(1, 2) == (1, 2) => True
I'd expect all of the above cases to return as valid.The text was updated successfully, but these errors were encountered: