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

Class ExtendedExampleVirt2

tests/test_virtual_functions.py:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 print(f"ExtendedExampleVirt::pure_virtual(): {self.data}")
32
33 class ExtendedExampleVirt2(ExtendedExampleVirt):
34 def __init__(self, state):
35 super().__init__(state + 1)
36
37 def get_string2(self):
38 return "override2"
39
40 ex12 = m.ExampleVirt(10)
41 with capture:

Callers 1

test_overrideFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_overrideFunction · 0.68