From 5e2018a1a1af371f335480595f20ceef28397f93 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 4 Feb 2023 09:06:51 -0800 Subject: [PATCH] add missing functions to tree --- masque/library.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/masque/library.py b/masque/library.py index 615da86..e121636 100644 --- a/masque/library.py +++ b/masque/library.py @@ -1034,6 +1034,12 @@ class Tree(MutableLibrary): def __delitem__(self, key: str) -> None: del self.library[key] + def __repr__(self) -> str: + return f'' + + def _merge(self, key_self: str, other: Mapping[str, 'Pattern'], key_other: str) -> None: + self.library._merge(key_self, other, key_other) + def _rename_patterns(lib: Library, name: str) -> str: # TODO document rename function