From c1b05ddcccefe2c4dbb16d4bb934cb15f73960d7 Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Wed, 4 Sep 2024 21:12:33 +1000 Subject: [PATCH] fix mypy lints --- starlette/applications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/starlette/applications.py b/starlette/applications.py index 706accf3e..1e3ec8c80 100644 --- a/starlette/applications.py +++ b/starlette/applications.py @@ -69,7 +69,8 @@ def __init__( debug: bool = False, routes: typing.Sequence[BaseRoute] | None = None, middleware: typing.Sequence[Middleware] | None = None, - exception_handlers: typing.Mapping[typing.Any, typing.Callable] | None = None, + exception_handlers: typing.Mapping[typing.Any, typing.Callable[[typing.Any, typing.Any], typing.Any]] + | None = None, on_startup: typing.Sequence[typing.Callable[[], typing.Any]] | None = None, on_shutdown: typing.Sequence[typing.Callable[[], typing.Any]] | None = None, lifespan: Lifespan[AppType] | None = None,