From 0c6b6a0b52235ffc5466dd8d0e87cb4be1c70e75 Mon Sep 17 00:00:00 2001 From: Oliver Backhouse Date: Tue, 28 Oct 2025 22:08:19 +0000 Subject: [PATCH 1/2] Rename example --- examples/{rccsd.py => codegen_rccsd.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename examples/{rccsd.py => codegen_rccsd.py} (100%) diff --git a/examples/rccsd.py b/examples/codegen_rccsd.py similarity index 100% rename from examples/rccsd.py rename to examples/codegen_rccsd.py From d12f655c68a7456c789500798a86df35cc00bd64 Mon Sep 17 00:00:00 2001 From: Oliver Backhouse Date: Wed, 29 Oct 2025 09:07:50 +0000 Subject: [PATCH 2/2] Fix is_leaf --- albert/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/albert/base.py b/albert/base.py index 79c750a..273ea27 100644 --- a/albert/base.py +++ b/albert/base.py @@ -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, ...]: