mirror of
https://github.com/python/cpython.git
synced 2026-04-05 03:21:05 +00:00
Issue #27332: Fixed the type of the first argument of module-level functions
generated by Argument Clinic. Patch by Petr Viktorin.
This commit is contained in:
parent
b8a2f51ceb
commit
1a2b24f02d
71 changed files with 1814 additions and 1835 deletions
|
|
@ -2793,7 +2793,7 @@ def correct_name_for_self(f):
|
|||
if f.kind in (CALLABLE, METHOD_INIT):
|
||||
if f.cls:
|
||||
return "PyObject *", "self"
|
||||
return "PyModuleDef *", "module"
|
||||
return "PyObject *", "module"
|
||||
if f.kind == STATIC_METHOD:
|
||||
return "void *", "null"
|
||||
if f.kind in (CLASS_METHOD, METHOD_NEW):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue