From bce2c33a4810c9fe0495e0a9dd4cbf2cb76015b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 24 Sep 2024 20:40:24 +0200 Subject: [PATCH] doc: adapt to more pybind11 type annotation changes. The code takes a py::handle, yes, but for Python itself that's something completely unknown. Since 2.12, pybind11 reports those as an object instead, which is a lot better. --- doc/python/corrade.containers.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/python/corrade.containers.rst b/doc/python/corrade.containers.rst index ed77e98..6ac9aaf 100644 --- a/doc/python/corrade.containers.rst +++ b/doc/python/corrade.containers.rst @@ -143,7 +143,7 @@ :ref:`format ` is not one of :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` -.. py:function:: corrade.containers.MutableStridedArrayView1D.__setitem__(self, i: int, value: handle) +.. py:function:: corrade.containers.MutableStridedArrayView1D.__setitem__(self, i: int, value: object) :raise IndexError: If :p:`i` is out of range :raise NotImplementedError: If the view was created from a buffer and :ref:`format ` is not one of @@ -191,7 +191,7 @@ :ref:`format ` is not one of :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` -.. py:function:: corrade.containers.MutableStridedArrayView2D.__setitem__(self, i: tuple[int, int], value: handle) +.. py:function:: corrade.containers.MutableStridedArrayView2D.__setitem__(self, i: tuple[int, int], value: object) :raise IndexError: If :p:`i` is out of range :raise NotImplementedError: If the view was created from a buffer and :ref:`format ` is not one of @@ -242,7 +242,7 @@ :ref:`format ` is not one of :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` -.. py:function:: corrade.containers.MutableStridedArrayView3D.__setitem__(self, i: tuple[int, int, int], value: handle) +.. py:function:: corrade.containers.MutableStridedArrayView3D.__setitem__(self, i: tuple[int, int, int], value: object) :raise IndexError: If :p:`i` is out of range :raise NotImplementedError: If the view was created from a buffer and :ref:`format ` is not one of @@ -291,7 +291,7 @@ :ref:`format ` is not one of :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` -.. py:function:: corrade.containers.MutableStridedArrayView4D.__setitem__(self, i: tuple[int, int, int, int], value: handle) +.. py:function:: corrade.containers.MutableStridedArrayView4D.__setitem__(self, i: tuple[int, int, int, int], value: object) :raise IndexError: If :p:`i` is out of range :raise NotImplementedError: If the view was created from a buffer and :ref:`format ` is not one of