fix limit_value typehint for limit function

This commit is contained in:
allenyuchen
2023-06-08 16:54:20 +08:00
parent 2f8893eaed
commit 49f75354ac

View File

@@ -778,7 +778,7 @@ class Limiter:
def limit(
self,
limit_value: Union[str, Callable[[str], str]],
limit_value: StrOrCallableStr,
key_func: Optional[Callable[..., str]] = None,
per_method: bool = False,
methods: Optional[List[str]] = None,