Skip to content

Commit

Permalink
remove pipe symbol for compatibility with older python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danplischke committed Dec 18, 2024
1 parent c7724f7 commit f2ada34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ariadne/asgi/handlers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def handle(self, scope: Scope, receive: Receive, send: Send) -> None:
response = await self.handle_request(request)
await response(scope, receive, send)

async def handle_request_override(self, request: Request) -> Response | None:
async def handle_request_override(self, request: Request) -> Optional[Response]:
"""Override the default request handling logic in subclasses.
Is called in the `handle_request` method before the default logic.
If None is returned, the default logic is executed.
Expand Down
2 changes: 1 addition & 1 deletion ariadne/contrib/sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def __init__(
self.ping_interval = ping_interval
self.default_response_headers = default_response_headers

async def handle_request_override(self, request: Request) -> Response | None:
async def handle_request_override(self, request: Request) -> Optional[Response]:
"""Overrides the handle_request_override method to handle Server-Sent Events
# Required arguments
Expand Down

0 comments on commit f2ada34

Please sign in to comment.