Browse Source

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.
next
Vladimír Vondruš 2 years ago
parent
commit
bce2c33a48
  1. 8
      doc/python/corrade.containers.rst

8
doc/python/corrade.containers.rst

@ -143,7 +143,7 @@
:ref:`format <MutableStridedArrayView1D.format>` is not one of :ref:`format <MutableStridedArrayView1D.format>` is not one of
:py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`,
:py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` :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 IndexError: If :p:`i` is out of range
:raise NotImplementedError: If the view was created from a buffer and :raise NotImplementedError: If the view was created from a buffer and
:ref:`format <MutableStridedArrayView1D.format>` is not one of :ref:`format <MutableStridedArrayView1D.format>` is not one of
@ -191,7 +191,7 @@
:ref:`format <MutableStridedArrayView2D.format>` is not one of :ref:`format <MutableStridedArrayView2D.format>` is not one of
:py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`,
:py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` :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 IndexError: If :p:`i` is out of range
:raise NotImplementedError: If the view was created from a buffer and :raise NotImplementedError: If the view was created from a buffer and
:ref:`format <MutableStridedArrayView2D.format>` is not one of :ref:`format <MutableStridedArrayView2D.format>` is not one of
@ -242,7 +242,7 @@
:ref:`format <MutableStridedArrayView3D.format>` is not one of :ref:`format <MutableStridedArrayView3D.format>` is not one of
:py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`,
:py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` :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 IndexError: If :p:`i` is out of range
:raise NotImplementedError: If the view was created from a buffer and :raise NotImplementedError: If the view was created from a buffer and
:ref:`format <MutableStridedArrayView3D.format>` is not one of :ref:`format <MutableStridedArrayView3D.format>` is not one of
@ -291,7 +291,7 @@
:ref:`format <MutableStridedArrayView4D.format>` is not one of :ref:`format <MutableStridedArrayView4D.format>` is not one of
:py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`, :py:`'b'`, :py:`'B'`, :py:`'h'`, :py:`'H'`, :py:`'i'`, :py:`'I'`,
:py:`'q'`, :py:`'Q'`, :py:`'f'` or :py:`'d'` :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 IndexError: If :p:`i` is out of range
:raise NotImplementedError: If the view was created from a buffer and :raise NotImplementedError: If the view was created from a buffer and
:ref:`format <MutableStridedArrayView4D.format>` is not one of :ref:`format <MutableStridedArrayView4D.format>` is not one of

Loading…
Cancel
Save