mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Fix exception reference error
:exc: isn't valid.
This commit is contained in:
parent
39b9e04be8
commit
4f9ee6e430
@ -432,7 +432,7 @@ To explicitly enable or disable this behaviour, using the
|
|||||||
}, py::arg("cat").none(false));
|
}, py::arg("cat").none(false));
|
||||||
|
|
||||||
With the above, the Python call ``bark(None)`` will return the string ``"(no
|
With the above, the Python call ``bark(None)`` will return the string ``"(no
|
||||||
dog)"``, while attempting to call ``meow(None)`` will throw a :exc:`TypeError`:
|
dog)"``, while attempting to call ``meow(None)`` will raise a ``TypeError``:
|
||||||
|
|
||||||
.. code-block:: pycon
|
.. code-block:: pycon
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user