Commit e3505038 authored by gsamain's avatar gsamain

Fix CyExtTypes casts from subclass

parent c1896c58
......@@ -1342,7 +1342,7 @@ class CythonExtensionType(CythonObjectType):
def assignable_from(self, src_type):
if self == src_type:
return True
if isinstance(src_type, PyExtensionType):
if isinstance(src_type, CythonExtensionType):
if src_type.base_type is not None:
return self.assignable_from(src_type.base_type)
if isinstance(src_type, BuiltinObjectType):
......
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