From 83c710a85f9a621c9f4ae8ec3b2933d990bb0af8 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 31 Jan 2023 15:33:42 -0800 Subject: [PATCH] fix add_tree operator --- masque/library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/library.py b/masque/library.py index 6e84d77..95945b1 100644 --- a/masque/library.py +++ b/masque/library.py @@ -1031,8 +1031,8 @@ class Tree(MutableLibrary): def __delitem__(self, key: str) -> None: del self.library[key] - def __lshift__(self, other: 'Tree') -> None: - self.add_tree(other) + def __lshift__(self, other: 'Tree') -> str: + return self.add_tree(other) def _rename_patterns(lib: Library, name: str) -> str: