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

Class CR

tests/test_virtual_functions.py:347–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 assert obj.say_everything() == "B says hi 1 times 4444"
346
347 class CR(m.C_Repeat):
348 def lucky_number(self):
349 return m.C_Repeat.lucky_number(self) + 1.25
350
351 obj = CR()
352 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