Skip to content

Commit 90ec3ab

Browse files
authored
Merge pull request #166 from PookieBuns/master
fix: limit_value typehint for limit function
2 parents 2f8893e + 49f7535 commit 90ec3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: slowapi/extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def sync_wrapper(*args: Any, **kwargs: Any) -> Response:
778778

779779
def limit(
780780
self,
781-
limit_value: Union[str, Callable[[str], str]],
781+
limit_value: StrOrCallableStr,
782782
key_func: Optional[Callable[..., str]] = None,
783783
per_method: bool = False,
784784
methods: Optional[List[str]] = None,

0 commit comments

Comments
 (0)