MCPcopy Index your code
hub / github.com/RustPython/RustPython / TestMagicMethodBoolFalseLenTrue

Class TestMagicMethodBoolFalseLenTrue

extra_tests/snippets/builtin_bool.py:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128class TestMagicMethodBoolFalseLenTrue:
129 def __bool__(self):
130 return False
131
132 def __len__(self):
133 return 1
134
135
136assert bool(TestMagicMethodBoolTrueLenFalse()) is True

Callers 1

builtin_bool.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected