From f75b953a112a86f4e3c66e3933c92926c222f3a5 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 4 Dec 2009 12:09:09 +0100 Subject: [PATCH] reverted accidental left-over in last commit --- Cython/Compiler/PyrexTypes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index d54cd571..264981e6 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -2034,8 +2034,7 @@ def spanning_type(type1, type2): # external types are unsafe, so we use PyObject instead return py_object_type return type1 - elif type2.assignable_from(type1) and \ - not (type2.is_typedef and type2.typedef_is_external): + elif type2.assignable_from(type1): if type2.is_extension_type and type2.typeobj_is_imported(): # external types are unsafe, so we use PyObject instead return py_object_type -- 2.26.2