mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-21 20:55:11 +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));
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user