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

Method func

tests/test_pytypes.py:399–400  ·  view source on GitHub ↗
(self, x, *args)

Source from the content-addressed store, hash-verified

397 sub = SubTestObject()
398
399 def func(self, x, *args):
400 return self.basic_attr + x + sum(args)
401
402 d = m.accessor_api(TestObject())
403 assert d["basic_attr"] == 1

Callers 1

class_Class · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected