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

Class A

tests/test_pytypes.py:240–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 assert doc(m.str_from_bytes) == "str_from_bytes() -> str"
239
240 class A:
241 def __str__(self):
242 return "this is a str"
243
244 def __repr__(self):
245 return "this is a repr"
246
247 assert m.str_from_object(A()) == "this is a str"
248 assert m.repr_from_object(A()) == "this is a repr"

Callers 1

test_strFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_strFunction · 0.56