gh-111178: Generate correct signature for most self converters (#128447)

This commit is contained in:
Erlend E. Aasland 2025-01-20 12:40:18 +01:00 committed by GitHub
parent 4d0a6595a0
commit 537296cdcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
74 changed files with 1627 additions and 1631 deletions

View file

@ -588,7 +588,7 @@ _io_BytesIO_readinto_impl(bytesio *self, Py_buffer *buffer)
/*[clinic input]
_io.BytesIO.truncate
size: Py_ssize_t(accept={int, NoneType}, c_default="self->pos") = None
size: Py_ssize_t(accept={int, NoneType}, c_default="((bytesio *)self)->pos") = None
/
Truncate the file to at most size bytes.
@ -599,7 +599,7 @@ The current file position is unchanged. Returns the new size.
static PyObject *
_io_BytesIO_truncate_impl(bytesio *self, Py_ssize_t size)
/*[clinic end generated code: output=9ad17650c15fa09b input=423759dd42d2f7c1]*/
/*[clinic end generated code: output=9ad17650c15fa09b input=dae4295e11c1bbb4]*/
{
CHECK_CLOSED(self);
CHECK_EXPORTS(self);