Merge pull request #166 from PookieBuns/master

fix: limit_value typehint for limit function
This commit is contained in:
Laurent Savaete
2023-06-08 13:47:57 +02:00
committed by GitHub

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,