From 13c1871031661a14bb1346f564b8f8e110e4b197 Mon Sep 17 00:00:00 2001 From: Jonathan Ehwald Date: Fri, 22 Nov 2024 16:04:19 +0100 Subject: [PATCH] Remove redundant method redefinition --- strawberry/fastapi/router.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/strawberry/fastapi/router.py b/strawberry/fastapi/router.py index 3ed8e6a4a0..51ccd9731f 100644 --- a/strawberry/fastapi/router.py +++ b/strawberry/fastapi/router.py @@ -38,7 +38,6 @@ from strawberry.asgi import ASGIRequestAdapter, ASGIWebSocketAdapter from strawberry.exceptions import InvalidCustomContext from strawberry.fastapi.context import BaseContext, CustomContext -from strawberry.http import process_result from strawberry.http.async_base_view import AsyncBaseHTTPView from strawberry.http.exceptions import HTTPException from strawberry.http.typevars import Context, RootValue @@ -54,7 +53,6 @@ from strawberry.http import GraphQLHTTPResponse from strawberry.http.ides import GraphQL_IDE from strawberry.schema import BaseSchema - from strawberry.types import ExecutionResult class GraphQLRouter( @@ -268,11 +266,6 @@ async def websocket_endpoint( # pyright: ignore async def render_graphql_ide(self, request: Request) -> HTMLResponse: return HTMLResponse(self.graphql_ide_html) - async def process_result( - self, request: Request, result: ExecutionResult - ) -> GraphQLHTTPResponse: - return process_result(result) - async def get_context( self, request: Union[Request, WebSocket], response: Union[Response, WebSocket] ) -> Context: # pragma: no cover