should be union; we want to exclude dangling refs

This commit is contained in:
jan 2023-04-07 16:55:50 -07:00
parent 340fe7f656
commit a07446808a

View File

@ -781,7 +781,7 @@ class MutableLibrary(Library, MutableMapping[str, 'Pattern'], metaclass=ABCMeta)
keep |= set(tops) keep |= set(tops)
new = type(self)() new = type(self)()
for key in keep - set(self.keys()): for key in keep & set(self.keys()):
new._merge(key, self, key) new._merge(key, self, key)
return new return new