diff options
| author | arcadia-devtools <[email protected]> | 2022-05-31 21:49:01 +0300 |
|---|---|---|
| committer | arcadia-devtools <[email protected]> | 2022-05-31 21:49:01 +0300 |
| commit | ceb13dcc40dd5e11c8e3189b3c15b3bd5897d4ac (patch) | |
| tree | eda501e07fcaba4f64bc3d29725472162f2e4227 /contrib/tools/cython/Cython/Compiler/Code.py | |
| parent | 5b69557e440e6ac18399a29076fef25602859f17 (diff) | |
intermediate changes
ref:85306a27df0004d13faf777131d0b092370e6b90
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/Code.py')
| -rw-r--r-- | contrib/tools/cython/Cython/Compiler/Code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/Code.py b/contrib/tools/cython/Cython/Compiler/Code.py index f43c4b2b8e5..45c5a325cf8 100644 --- a/contrib/tools/cython/Cython/Compiler/Code.py +++ b/contrib/tools/cython/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. |
