[ILibraryView] fix assignment during dfs()
This commit is contained in:
parent
fbe138d443
commit
09a95a6608
2 changed files with 49 additions and 0 deletions
|
|
@ -538,6 +538,7 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
|
|||
raise LibraryError('visit_* functions returned a new `Pattern` object'
|
||||
' but no top-level name was provided in `hierarchy`')
|
||||
|
||||
del cast('ILibrary', self)[name]
|
||||
cast('ILibrary', self)[name] = pattern
|
||||
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue