disable deepcopy for Library since it doesn't work
This commit is contained in:
parent
9c20960e62
commit
bff9940518
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user