Skip to content

Commit ff5834d

Browse files
committed
Lint fixes
1 parent 8af6bd9 commit ff5834d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ peps/pep-0801.rst @warsaw
680680
peps/pep-0802.rst @AA-Turner
681681
peps/pep-0803.rst @encukou
682682
peps/pep-0804.rst @pradyunsg
683+
peps/pep-0809.rst @zooba
683684
# ...
684685
peps/pep-2026.rst @hugovk
685686
# ...

peps/pep-0809.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ For example, if a new API were to be added during ``abi2026``'s life that allows
237237
more efficient access to an ``int`` object's internal data, rather than adding a
238238
new API, we would create a new interface: a struct containing a function pointer
239239
to copy the data to a new location, and a previously unused index/name for that
240-
interface. The caller can call ``PyObject_GetInterface(int_object, &intf_struct)``
240+
interface. The caller can call ``PyObject_GetInterface(int_object, &intf_struct)``
241241
first; if it succeeds, call (a hypothetical)
242242
``(*intf_struct.copy_bits)(&intf_struct, dest, sizeof(dest))``; if it fails,
243243
they can use ``PyObject_CallMethod(int_object, "to_bytes", ...)`` to perform the
@@ -248,9 +248,10 @@ single extension module that is binary compatible with *all* releases supporting
248248
Overview complete, here is the full specification of each new API:
249249

250250
.. code-block:: c
251+
251252
// Abstract API to request an interface for an object (or type).
252253
PyAPI_FUNC(int) PyObject_GetInterface(PyObject *obj, void *intf);
253-
254+
254255
// API to release an interface.
255256
PyAPI_FUNC(int) PyInterface_Release(void *intf);
256257
@@ -268,7 +269,7 @@ Overview complete, here is the full specification of each new API:
268269
// Should only be invoked by PyInterface_Release(), not directly.
269270
int (*release)(struct PyInterface_Base *intf);
270271
} PyInterface_Base;
271-
272+
272273
// Type slot definition for PyTypeObject field.
273274
typedef int (*Py_getinterfacefunc)(PyObject *o, PyInterface_Base *intf);
274275

0 commit comments

Comments
 (0)