top is always a string

This commit is contained in:
jan 2023-04-06 17:06:13 -07:00
parent 4eee4d19e9
commit 94691dac85

View File

@ -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