Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __bool__
Method
__bool__
data_structures/binary_tree/red_black_tree.py:452–453 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
450
return
self.parent.right is self
451
452
def
__bool__(self) -> bool:
453
return
True
454
455
def
__len__(self) -> int:
456
""
"
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected