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

TypeError: isinstance() arg 2 must be a type or tuple of types #28

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

TypeError: isinstance() arg 2 must be a type or tuple of types #28

smarie opened this issue Apr 23, 2019 · 0 comments
Labels

Comments

@smarie
Copy link
Owner

smarie commented Apr 23, 2019

from enum import Enum

class MyEnum(Enum):
    a = 1
    b = 2

validate('a', MyEnum.a, instance_of=MyEnum)
@smarie smarie added the bug label Apr 23, 2019
@smarie smarie closed this as completed in 633d86d Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant