diff options
Diffstat (limited to 'Cython/Compiler/Code.py')
-rw-r--r-- | Cython/Compiler/Code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index f43c4b2b8..45c5a325c 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -2233,8 +2233,8 @@ class CCodeWriter(object): method_flags = entry.signature.method_flags() if not method_flags: return - if entry.is_special: - from . import TypeSlots + from . import TypeSlots + if entry.is_special or TypeSlots.is_reverse_number_slot(entry.name): method_flags += [TypeSlots.method_coexist] func_ptr = wrapper_code_writer.put_pymethoddef_wrapper(entry) if wrapper_code_writer else entry.func_cname # Add required casts, but try not to shadow real warnings. |