__mod__
__mul__
__neg__
-__new__
__next__
__or__
__pos__
module, cls = self.clinic._module_and_class(fields)
fields = full_name.split('.')
+ if fields[-1] in unsupported_special_methods:
+ fail(f"{fields[-1]} is a special method and cannot be converted to Argument Clinic! (Yet.)")
+
if fields[-1] == '__new__':
if (self.kind != CLASS_METHOD) or (not cls):
fail("__new__ must be a class method!")
self.kind = METHOD_INIT
if not return_converter:
return_converter = init_return_converter()
- elif fields[-1] in unsupported_special_methods:
- fail(fields[-1] + " is a special method and cannot be converted to Argument Clinic! (Yet.)")
if not return_converter:
return_converter = CReturnConverter()