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

Method __init__

tests/test_factory_constructors.py:339–341  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337def test_multiple_inheritance():
338 class MITest(m.TestFactory1, m.TestFactory2):
339 def __init__(self):
340 m.TestFactory1.__init__(self, tag.unique_ptr, 33)
341 m.TestFactory2.__init__(self, tag.move)
342
343 a = MITest()
344 assert m.TestFactory1.value.fget(a) == "33"

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected