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

Class A

tests/test_builtin_casters.py:560–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558 assert convert(None) is False
559
560 class A:
561 def __init__(self, x):
562 self.x = x
563
564 def __nonzero__(self):
565 return self.x
566
567 def __bool__(self):
568 return self.x
569
570 class B:
571 pass

Callers 1

test_bool_casterFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_bool_casterFunction · 0.56