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

Function check

extra_tests/snippets/builtin_bool.py:162–164  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

160# from __bool__(). This isn't really a bool test, but
161# it's related.
162def check(o):
163 with assert_raises(TypeError):
164 bool(o)
165
166
167class Foo(object):

Callers 1

builtin_bool.pyFile · 0.70

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected