File tree Expand file tree Collapse file tree 3 files changed +7
-17
lines changed
Expand file tree Collapse file tree 3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 33 AsyncIterator ,
44 Awaitable ,
55 Callable ,
6+ Literal ,
67 TypeAlias ,
78 TypedDict ,
89)
2021]
2122
2223
24+ class OuterPayload [A ](TypedDict ):
25+ ok : Literal [True ]
26+ payload : A
27+
28+
2329class _WsServerState (TypedDict ):
2430 ipv4_laddr : tuple [str , int ] | None
2531
Original file line number Diff line number Diff line change 33from typing import (
44 Any ,
55 AsyncIterator ,
6- Literal ,
7- TypedDict ,
86)
97
108import msgpack
2018from replit_river .transport_options import TransportOptions
2119from replit_river .v2 .client import Client
2220from replit_river .v2 .session import STREAM_CANCEL_BIT
23- from tests .v2 .fixtures .raw_ws_server import WsServerFixture
24-
25-
26- class OuterPayload [A ](TypedDict ):
27- ok : Literal [True ]
28- payload : A
21+ from tests .v2 .fixtures .raw_ws_server import OuterPayload , WsServerFixture
2922
3023
3124async def test_upload_cancel (ws_server : WsServerFixture ) -> None :
Original file line number Diff line number Diff line change 11import asyncio
22import logging
3- from typing import (
4- Literal ,
5- TypedDict ,
6- )
73
84import msgpack
95import nanoid
2319from tests .v2 .fixtures .raw_ws_server import WsServerFixture
2420
2521
26- class OuterPayload [A ](TypedDict ):
27- ok : Literal [True ]
28- payload : A
29-
30-
3122class _PermissiveRateLimiter (RateLimiter ):
3223 def start_restoring_budget (self , user : str ) -> None :
3324 pass
You can’t perform that action at this time.
0 commit comments