diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index 4e6b8d9..32ce581 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -2233,7 +2233,8 @@ typedef struct { except KeyError: pass else: - dict_.setdefault("tp_call", call_method.wrapper_actual_name) + if call_method.wrapper_actual_name: + dict_.setdefault("tp_call", call_method.wrapper_actual_name) self.pytype.generate(code_sink)