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

Method double

tests/test_callbacks.py:41–42  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

39 # Bound Python method:
40 class MyClass:
41 def double(self, val):
42 return 2 * val
43
44 z = MyClass()
45 assert m.test_callback3(z.double) == "func(43) = 86"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected