More function definition fixes
This commit is contained in:
parent
a84493908a
commit
3223dd0edc
@ -30,6 +30,7 @@ def error(
|
||||
error: Exception | None,
|
||||
file: str,
|
||||
/,
|
||||
*,
|
||||
json: bool = False,
|
||||
post_redirect: str | None = None,
|
||||
**kwargs,
|
||||
@ -121,6 +122,7 @@ def error(
|
||||
def error_404(
|
||||
error: Exception,
|
||||
/,
|
||||
*,
|
||||
json: bool = False,
|
||||
post_redirect: str | None = None,
|
||||
**kwargs,
|
||||
|
@ -25,6 +25,7 @@ ViewCallable = Callable[P, ViewReturn]
|
||||
def exception_handler(
|
||||
file: str,
|
||||
/,
|
||||
*,
|
||||
json: bool = False,
|
||||
post_redirect: str | None = None
|
||||
) -> Callable[[ViewCallable], ViewCallable]:
|
||||
|
@ -12,6 +12,7 @@ def upload_helper(
|
||||
name: str,
|
||||
endpoint: str,
|
||||
/,
|
||||
*,
|
||||
extensions: list[str] = [],
|
||||
) -> FileStorage | Response:
|
||||
# Bogus submit
|
||||
|
Loading…
Reference in New Issue
Block a user