@@ -136,15 +136,15 @@ _io__BufferedIOBase_detach_impl(PyObject *self, PyTypeObject *cls)
136136_io._BufferedIOBase.read
137137
138138 cls: defining_class
139+ size: int(unused=True) = -1
139140 /
140- *args: object
141141
142142Read and return up to n bytes.
143143
144- If the argument is omitted, None, or negative, read and
144+ If the size argument is omitted, None, or negative, read and
145145return all data until EOF.
146146
147- If the argument is positive, and the underlying raw stream is
147+ If the size argument is positive, and the underlying raw stream is
148148not 'interactive', multiple raw reads may be issued to satisfy
149149the byte count (unless EOF is reached first).
150150However, for interactive raw streams (as well as sockets and pipes),
@@ -159,8 +159,8 @@ mode and no data is available at the moment.
159159
160160static PyObject *
161161_io__BufferedIOBase_read_impl (PyObject * self , PyTypeObject * cls ,
162- PyObject * args )
163- /*[clinic end generated code: output=4521b30940fd7b67 input=390205758adc8510 ]*/
162+ int Py_UNUSED ( size ) )
163+ /*[clinic end generated code: output=aceb2765587b0a29 input=824f6f910465e61a ]*/
164164{
165165 _PyIO_State * state = get_io_state_by_cls (cls );
166166 return bufferediobase_unsupported (state , "read" );
@@ -170,19 +170,19 @@ _io__BufferedIOBase_read_impl(PyObject *self, PyTypeObject *cls,
170170_io._BufferedIOBase.read1
171171
172172 cls: defining_class
173+ size: int(unused=True) = -1
173174 /
174- *args: object
175175
176- Read and return up to n bytes, with at most one read() call to the underlying raw stream.
176+ Read and return up to size bytes, with at most one read() call to the underlying raw stream.
177177
178178Return an empty bytes object on EOF.
179179A short result does not imply that EOF is imminent.
180180[clinic start generated code]*/
181181
182182static PyObject *
183183_io__BufferedIOBase_read1_impl (PyObject * self , PyTypeObject * cls ,
184- PyObject * args )
185- /*[clinic end generated code: output=636fd241c21e050a input=ef546a1238c5b41c ]*/
184+ int Py_UNUSED ( size ) )
185+ /*[clinic end generated code: output=2e7fc62972487eaa input=af76380e020fd9e6 ]*/
186186{
187187 _PyIO_State * state = get_io_state_by_cls (cls );
188188 return bufferediobase_unsupported (state , "read1" );
@@ -192,10 +192,10 @@ _io__BufferedIOBase_read1_impl(PyObject *self, PyTypeObject *cls,
192192_io._BufferedIOBase.write
193193
194194 cls: defining_class
195+ b: object(unused=True)
195196 /
196- *args: object
197197
198- Write the given buffer to the IO stream.
198+ Write buffer b to the IO stream.
199199
200200Return the number of bytes written, which is always
201201the length of b in bytes.
@@ -206,8 +206,8 @@ underlying raw stream cannot accept more data at the moment.
206206
207207static PyObject *
208208_io__BufferedIOBase_write_impl (PyObject * self , PyTypeObject * cls ,
209- PyObject * args )
210- /*[clinic end generated code: output=d51feea4bcac9892 input=f79b72c4dccb3dc2 ]*/
209+ PyObject * Py_UNUSED ( b ) )
210+ /*[clinic end generated code: output=712c635246bf2306 input=9793f5c8f71029ad ]*/
211211{
212212 _PyIO_State * state = get_io_state_by_cls (cls );
213213 return bufferediobase_unsupported (state , "write" );
0 commit comments