should be union; we want to exclude dangling refs
This commit is contained in:
parent
340fe7f656
commit
a07446808a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user