Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion albert/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def factory(cls: type[Base], *args: Any, **kwargs: Any) -> Base:
@property
def is_leaf(self) -> bool:
"""Get whether the object is a leaf in a tree."""
return self.children is None
return not bool(self.children)

@property
def children(self) -> tuple[Base, ...]:
Expand Down
File renamed without changes.