From 3ed1931596589525fca3f5ef2db07117e559b288 Mon Sep 17 00:00:00 2001 From: s Date: Wed, 13 Mar 2024 22:42:20 +0100 Subject: [PATCH] fix --- flatten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatten.py b/flatten.py index 196d022..3bbc4e1 100644 --- a/flatten.py +++ b/flatten.py @@ -9,7 +9,7 @@ def flatten_base(base: Base) -> Iterable[Base]: """Take a base and flatten it to an iterable of bases.""" if hasattr(base, "elements"): - print("flatten: base has " + str(len(elements)) + " elements") + print("flatten: base has " + str(len(base.elements)) + " elements") for element in base["elements"]: yield from flatten_base(element)