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

Method __init__

tests/test_virtual_functions.py:15–17  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

13def test_override(capture, msg):
14 class ExtendedExampleVirt(m.ExampleVirt):
15 def __init__(self, state):
16 super().__init__(state + 1)
17 self.data = "Hello world"
18
19 def run(self, value):
20 print(f"ExtendedExampleVirt::run({value}), calling parent..")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected