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

Method CustomRepr

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

Source from the content-addressed store, hash-verified

46 std::string repr_string;
47
48 explicit CustomRepr(const std::string &repr) : repr_string(repr) {}
49
50 std::string __repr__() const { return repr_string; }
51 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected