From 5b1abf5f72921c4930dbc17d46d72c2297398efc Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 6 Apr 2023 17:06:13 -0700 Subject: [PATCH] top is always a string --- masque/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/library.py b/masque/library.py index 9afd150..c69831e 100644 --- a/masque/library.py +++ b/masque/library.py @@ -1045,7 +1045,7 @@ class Tree(MutableLibrary): top: str, library: MutableLibrary | None = None ) -> None: - self.top = top if isinstance(top, str) else top.name + self.top = top self.library = library if library is not None else WrapLibrary() @classmethod