mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-117764: Add signatures for __reduce__ and __reduce_ex__ in the _io module (GH-117773)
__reduce__() does not have parameters, __reduce_ex__() has a single parameter.
This commit is contained in:
parent
2638c28be0
commit
35f60c3def
3 changed files with 10 additions and 10 deletions
|
|
@ -3337,8 +3337,8 @@ static PyMethodDef textiowrapper_methods[] = {
|
|||
_IO_TEXTIOWRAPPER_TELL_METHODDEF
|
||||
_IO_TEXTIOWRAPPER_TRUNCATE_METHODDEF
|
||||
|
||||
{"__reduce__", _PyIOBase_cannot_pickle, METH_VARARGS},
|
||||
{"__reduce_ex__", _PyIOBase_cannot_pickle, METH_VARARGS},
|
||||
{"__reduce__", _PyIOBase_cannot_pickle, METH_NOARGS},
|
||||
{"__reduce_ex__", _PyIOBase_cannot_pickle, METH_O},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue