@property
def expandable(self) -> bool:
    'Check if the line may be expanded.'
    return bool(((self.node is not None) and self.node.children))
Check if the line may be expanded.
@property
def expandable(self) -> bool:
    
    return bool(((self.node is not None) and self.node.children))