From 9cfe2bd1437de4b53ea8a26a4dcd786ee835d076 Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Wed, 4 Sep 2024 21:15:04 +1000 Subject: [PATCH] fix ruff lints --- starlette/applications.py | 2 -- starlette/types.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/starlette/applications.py b/starlette/applications.py index 1e3ec8c80..37beac49f 100644 --- a/starlette/applications.py +++ b/starlette/applications.py @@ -21,8 +21,6 @@ ASGIApp, ExceptionHandler, ExceptionType, - ExceptionType2, - ExceptionType3, Lifespan, Receive, Scope, diff --git a/starlette/types.py b/starlette/types.py index d40e4d3cb..d220944c1 100644 --- a/starlette/types.py +++ b/starlette/types.py @@ -20,8 +20,6 @@ Lifespan = typing.Union[StatelessLifespan[AppType], StatefulLifespan[AppType]] ExceptionType = typing.TypeVar("ExceptionType", bound=Exception) -ExceptionType2 = typing.TypeVar("ExceptionType2", bound=Exception) -ExceptionType3 = typing.TypeVar("ExceptionType3", bound=Exception) HTTPExceptionHandler = typing.Callable[["Request", ExceptionType], "Response | typing.Awaitable[Response]"] WebSocketExceptionHandler = typing.Callable[["WebSocket", ExceptionType], typing.Awaitable[None]]