Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ Boolean
Class
Boolean
Lib/test/test_iter.py:544–548 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
542
self.assertRaises(TypeError, filter, None, 42)
543
544
class
Boolean:
545
def
__init__(self, truth):
546
self.truth = truth
547
def
__bool__(self):
548
return
self.truth
549
bTrue = Boolean(True)
550
bFalse = Boolean(False)
551
Callers
2
test_builtin_filter
Method · 0.85
from
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_builtin_filter
Method · 0.68