-
Notifications
You must be signed in to change notification settings - Fork 239
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
types.is_type not detecting subtyping? #167
Comments
Good point! We could change the implementation, but it would only work for Lua class systems where |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
types.is_type(OrderedMap(), Map)
returns false, so it seems that the behavior ofis_type
is to check literally if the object is of the specified type, rather than whether it's derived from the type (which is the behavior ofisinstance
in python).If this is the intended behavior, perhaps there should be some words on this in the doc for
is_type
.The text was updated successfully, but these errors were encountered: