should be union; we want to exclude dangling refs
This commit is contained in:
parent
340fe7f656
commit
a07446808a
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ class MutableLibrary(Library, MutableMapping[str, 'Pattern'], metaclass=ABCMeta)
|
|||
keep |= set(tops)
|
||||
|
||||
new = type(self)()
|
||||
for key in keep - set(self.keys()):
|
||||
for key in keep & set(self.keys()):
|
||||
new._merge(key, self, key)
|
||||
return new
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue