From aba6123c3bebb23e74a2fc6f8171307751be9ee5 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 7 Jul 2022 16:17:21 -0700 Subject: [PATCH] disable deepcopy for Library since it doesn't work --- masque/library/library.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/masque/library/library.py b/masque/library/library.py index b65dbf4..fc7e0a2 100644 --- a/masque/library/library.py +++ b/masque/library/library.py @@ -332,6 +332,8 @@ class Library: self.cache = {} 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""" # Add a filter for names which aren't added