From a4bf4d05230474ad14243d67ac7f8c938f670e58 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 2 Feb 2022 09:14:12 -0800 Subject: More type annotations. --- decorator_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'decorator_utils.py') diff --git a/decorator_utils.py b/decorator_utils.py index a956a21..cd69639 100644 --- a/decorator_utils.py +++ b/decorator_utils.py @@ -223,7 +223,7 @@ def debug_count_calls(func: Callable) -> Callable: logger.info(msg) return func(*args, **kwargs) - wrapper_debug_count_calls.num_calls = 0 + wrapper_debug_count_calls.num_calls = 0 # type: ignore return wrapper_debug_count_calls @@ -366,7 +366,7 @@ def memoized(func: Callable) -> Callable: logger.debug(f"Returning memoized value for {func.__name__}") return wrapper_memoized.cache[cache_key] - wrapper_memoized.cache = dict() + wrapper_memoized.cache = dict() # type: ignore return wrapper_memoized -- cgit v1.3