From cbbe4156a489a236c1a6db151809642349e1dcd0 Mon Sep 17 00:00:00 2001 From: Charles Duffy Date: Wed, 21 Aug 2024 15:44:31 -0500 Subject: [PATCH] Preserve update_status_tracker through partial call --- memoize/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memoize/wrapper.py b/memoize/wrapper.py index 3ac80bc..a79b96e 100644 --- a/memoize/wrapper.py +++ b/memoize/wrapper.py @@ -50,7 +50,7 @@ def memoize(method: Optional[Callable] = None, configuration: CacheConfiguration if method is None: if configuration is None: configuration = DefaultInMemoryCacheConfiguration() - return functools.partial(memoize, configuration=configuration, invalidation=invalidation) + return functools.partial(memoize, configuration=configuration, invalidation=invalidation, update_status_tracker=update_status_tracker) if invalidation is not None and not invalidation._initialized() and configuration is not None: invalidation._initialize(configuration.storage(), configuration.key_extractor(), method)