mirror of
https://github.com/laurentS/slowapi.git
synced 2026-03-13 09:10:20 +08:00
Merge pull request #166 from PookieBuns/master
fix: limit_value typehint for limit function
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user