Skip to content

Commit

Permalink
fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitagashkov committed Dec 8, 2024
1 parent 5ff5f84 commit 93e3fa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions starlette/middleware/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typing

import anyio
from anyio.abc import ObjectReceiveStream, ObjectSendStream
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream

from starlette._utils import collapse_excgroups
from starlette.requests import ClientDisconnect, Request
Expand Down Expand Up @@ -105,8 +105,8 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
wrapped_receive = request.wrapped_receive
response_sent = anyio.Event()

send_stream: ObjectSendStream[typing.MutableMapping[str, typing.Any]]
recv_stream: ObjectReceiveStream[typing.MutableMapping[str, typing.Any]]
send_stream: MemoryObjectSendStream[Message]
recv_stream: MemoryObjectReceiveStream[Message]
send_stream, recv_stream = anyio.create_memory_object_stream()

async def call_next(request: Request) -> Response:
Expand Down

0 comments on commit 93e3fa5

Please sign in to comment.