From: Scott Date: Wed, 2 Feb 2022 18:35:08 +0000 (-0800) Subject: Fix a problem introduced with previous type cleanup change. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=1ce11b3c28d175b6dcbfea9cf6367081f049c5a9;p=python_utils.git Fix a problem introduced with previous type cleanup change. --- diff --git a/persistent.py b/persistent.py index 7136559..1e520be 100644 --- a/persistent.py +++ b/persistent.py @@ -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