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

Class DR

tests/test_virtual_functions.py:386–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384 assert obj.say_everything() == "B says hi 1 times 4444"
385
386 class DR(m.D_Repeat):
387 def unlucky_number(self):
388 return 123
389
390 def lucky_number(self):
391 return 42.0
392
393 for obj in [m.D_Repeat(), m.D_Tpl()]:
394 assert obj.say_something(3) == "B says hi 3 times"

Callers 1

test_inherited_virtualsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_inherited_virtualsFunction · 0.68