Skip to content

Commit a5333a2

Browse files
committed
Pass type checker on Python 3.7
1 parent a3305b3 commit a5333a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shiny/_error.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from typing import cast
1+
from typing import Dict, cast
22

33
import starlette.exceptions as exceptions
44
import starlette.responses as responses
5-
from starlette.types import Receive, Scope, Send, ASGIApp
5+
from starlette.types import ASGIApp, Receive, Scope, Send
66

77

88
class ErrorMiddleware:
@@ -23,7 +23,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
2323
e.detail,
2424
e.status_code,
2525
headers=cast(
26-
dict[str, str],
26+
Dict[str, str],
2727
e.headers, # pyright: ignore[reportUnknownMemberType]
2828
),
2929
media_type="text/plain",

0 commit comments

Comments
 (0)