@@ -164,7 +164,8 @@ _PyAtExit_Call(PyInterpreterState *interp)
164
164
165
165
166
166
PyDoc_STRVAR (atexit_register__doc__ ,
167
- "register(func, *args, **kwargs) -> func\n\
167
+ "register($module, func, /, *args, **kwargs)\n\
168
+ --\n\
168
169
\n\
169
170
Register a function to be executed upon normal program termination\n\
170
171
\n\
@@ -221,7 +222,8 @@ atexit_register(PyObject *module, PyObject *args, PyObject *kwargs)
221
222
}
222
223
223
224
PyDoc_STRVAR (atexit_run_exitfuncs__doc__ ,
224
- "_run_exitfuncs() -> None\n\
225
+ "_run_exitfuncs($module, /)\n\
226
+ --\n\
225
227
\n\
226
228
Run all registered exit functions.\n\
227
229
\n\
@@ -236,7 +238,8 @@ atexit_run_exitfuncs(PyObject *module, PyObject *unused)
236
238
}
237
239
238
240
PyDoc_STRVAR (atexit_clear__doc__ ,
239
- "_clear() -> None\n\
241
+ "_clear($module, /)\n\
242
+ --\n\
240
243
\n\
241
244
Clear the list of previously registered exit functions." );
242
245
@@ -248,7 +251,8 @@ atexit_clear(PyObject *module, PyObject *unused)
248
251
}
249
252
250
253
PyDoc_STRVAR (atexit_ncallbacks__doc__ ,
251
- "_ncallbacks() -> int\n\
254
+ "_ncallbacks($module, /)\n\
255
+ --\n\
252
256
\n\
253
257
Return the number of registered exit functions." );
254
258
@@ -260,7 +264,8 @@ atexit_ncallbacks(PyObject *module, PyObject *unused)
260
264
}
261
265
262
266
PyDoc_STRVAR (atexit_unregister__doc__ ,
263
- "unregister(func) -> None\n\
267
+ "unregister($module, func, /)\n\
268
+ --\n\
264
269
\n\
265
270
Unregister an exit function which was previously registered using\n\
266
271
atexit.register\n\
0 commit comments