Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
162
def
check(o):
163
with
assert_raises(TypeError):
164
bool(o)
165
166
167
class
Foo(object):
Callers
1
builtin_bool.py
File · 0.70
Calls
1
assert_raises
Function · 0.90
Tested by
no test coverage detected