From e8516c6605917e52cd9b8de0a3978e76384cdc22 Mon Sep 17 00:00:00 2001 From: Laurent Savaete Date: Sat, 28 Aug 2021 21:15:19 +0100 Subject: [PATCH] Remove typing annotation that fails in python 3.9 --- slowapi/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slowapi/extension.py b/slowapi/extension.py index 451e0d2..b6b2dd3 100644 --- a/slowapi/extension.py +++ b/slowapi/extension.py @@ -573,7 +573,7 @@ class Limiter: _scope = scope if shared else None - def decorator(func: Callable[..., Response]) -> Callable[..., Response]: + def decorator(func: Callable[..., Response]): keyfunc = key_func or self._key_func name = f"{func.__module__}.{func.__name__}" dynamic_limit = None