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

Method __repr__

tests/test_kwargs_and_defaults.cpp:50–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 explicit CustomRepr(const std::string &repr) : repr_string(repr) {}
49
50 std::string __repr__() const { return repr_string; }
51 };
52
53 py::class_<CustomRepr>(m, "CustomRepr")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected