Commit ddba4f1e authored by Stefan Behnel's avatar Stefan Behnel

fix type inheritance check for builtin types

parent bb909844
......@@ -445,7 +445,7 @@ class BuiltinObjectType(PyObjectType):
return True
def subtype_of(self, type):
return type.is_pyobject and self.assignable_from(type)
return type.is_pyobject and type.assignable_from(self)
def type_check_function(self, exact=True):
type_name = self.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment