mirror of
https://github.com/laurentS/slowapi.git
synced 2026-03-13 09:10:20 +08:00
Remove typing annotation that fails in python 3.9
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user