MCPcopy Create free account
hub / github.com/pybind/pybind11 / __repr__

Method __repr__

tests/test_exceptions.py:271–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

269def test_invalid_repr():
270 class MyRepr:
271 def __repr__(self):
272 raise AttributeError("Example error")
273
274 with pytest.raises(TypeError):
275 m.simple_bool_passthrough(MyRepr())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected