More function definition fixes

This commit is contained in:
Gregoo 2025-01-23 08:58:57 +01:00
parent a84493908a
commit 3223dd0edc
3 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -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]:

View File

@ -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