We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af29d5c commit 074b2aeCopy full SHA for 074b2ae
Tools/clinic/libclinic/parse_args.py
@@ -831,9 +831,9 @@ def handle_new_or_init(self) -> None:
831
def process_methoddef(self, clang: CLanguage) -> None:
832
methoddef_cast_end = ""
833
if self.flags in ('METH_NOARGS', 'METH_O', 'METH_VARARGS'):
834
- methoddef_cast = "(PyCFunction)"
+ methoddef_cast = "" # no need for a PyCFunction cast
835
elif self.func.kind is GETTER:
836
- methoddef_cast = "" # This should end up unused
+ methoddef_cast = "" # this should end up unused
837
elif self.limited_capi:
838
methoddef_cast = "(PyCFunction)(void(*)(void))"
839
else:
0 commit comments