top is always a string
This commit is contained in:
parent
463c41b62a
commit
5b1abf5f72
@ -1045,7 +1045,7 @@ class Tree(MutableLibrary):
|
|||||||
top: str,
|
top: str,
|
||||||
library: MutableLibrary | None = None
|
library: MutableLibrary | None = 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()
|
self.library = library if library is not None else WrapLibrary()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user