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