Skip to content

Commit

Permalink
Preserve update_status_tracker through partial call
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-dyfis-net committed Aug 21, 2024
1 parent 32abefe commit cbbe415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memoize/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cbbe415

Please sign in to comment.