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

assert_instance_of and assert_subclass_of, used in validate, could be improved #26

Closed
smarie opened this issue Apr 18, 2019 · 0 comments

Comments

@smarie
Copy link
Owner

smarie commented Apr 18, 2019

isinstance and issubclass methods allow the second argument to be a tuple containing various classes to be tested. We could rely on that rather than doing all tests manually in case of a sequence/iterable.

Also it would be good to release the constraint that the instance_of or subclass_of argument of validate should be a set only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant