Fix a problem introduced with previous type cleanup change.
authorScott <[email protected]>
Wed, 2 Feb 2022 18:35:08 +0000 (10:35 -0800)
committerScott <[email protected]>
Wed, 2 Feb 2022 18:35:08 +0000 (10:35 -0800)
persistent.py

index 7136559492ed0615366db854412c02c9024c7022..1e520bedd9ba0816692c5687114a1b106f3440d2 100644 (file)
@@ -128,6 +128,7 @@ class persistent_autoloaded_singleton(object):
         self.instance = None
 
     def __call__(self, cls: Persistent):
+        @functools.wraps(cls)  # type: ignore
         def _load(*args, **kwargs):
 
             # If class has already been loaded, act like a singleton