Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __bool__
Method
__bool__
testing/test_assertrewrite.py:693–694 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
691
def
f() -> None:
692
class
A:
693
def
__bool__(self):
694
raise
ValueError(42)
695
696
def
__lt__(self, other):
697
return
A()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected