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

Class BT

tests/test_virtual_functions.py:428–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 return -3
427
428 class BT(m.B_Tpl):
429 def say_something(self, times):
430 return "BT" * times
431
432 def unlucky_number(self):
433 return -7
434
435 def lucky_number(self):
436 return -1.375
437
438 obj = BT()
439 assert obj.say_something(3) == "BTBTBT"

Callers 1

test_inherited_virtualsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_inherited_virtualsFunction · 0.68