We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Protocol
typing_extensions
1 parent 2c7f2dc commit 7098ab5Copy full SHA for 7098ab5
starlette/types.py
@@ -1,5 +1,7 @@
1
import typing
2
3
+from typing_extensions import Protocol
4
+
5
Scope = typing.MutableMapping[str, typing.Any]
6
Message = typing.MutableMapping[str, typing.Any]
7
@@ -9,6 +11,6 @@
9
11
ASGIApp = typing.Callable[[Scope, Receive, Send], typing.Awaitable[None]]
10
12
13
-class MiddewareProto(typing.Protocol):
14
+class MiddewareProto(Protocol):
15
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
16
...
0 commit comments