disable deepcopy for Library since it doesn't work

This commit is contained in:
jan 2022-07-07 16:17:21 -07:00
parent 9c20960e62
commit bff9940518

View File

@ -332,6 +332,8 @@ class Library:
self.cache = {} self.cache = {}
return self return self
def __deepcopy__(self: L, memo: Optional[Dict] = None) -> L:
raise LibraryError('Library cannot be deepcopied -- python copy.deepcopy() does not copy closures!')
r""" r"""
# Add a filter for names which aren't added # Add a filter for names which aren't added