Commit 59bde8d4 authored by gsamain's avatar gsamain

Fix CyExtTypes casts from subclass

parent e2e52d2a
......@@ -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