Skip to content

Commit

Permalink
Remove redundant method redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorJohn committed Nov 22, 2024
1 parent 3f7957c commit 13c1871
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions strawberry/fastapi/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13c1871

Please sign in to comment.