Skip to content

Commit 7098ab5

Browse files
committed
Import Protocol from typing_extensions
1 parent 2c7f2dc commit 7098ab5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

starlette/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import typing
22

3+
from typing_extensions import Protocol
4+
35
Scope = typing.MutableMapping[str, typing.Any]
46
Message = typing.MutableMapping[str, typing.Any]
57

@@ -9,6 +11,6 @@
911
ASGIApp = typing.Callable[[Scope, Receive, Send], typing.Awaitable[None]]
1012

1113

12-
class MiddewareProto(typing.Protocol):
14+
class MiddewareProto(Protocol):
1315
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
1416
...

0 commit comments

Comments
 (0)