Skip to content

Commit fc677e7

Browse files
committed
fix: data type list,dict -> sequence,mapping
1 parent a1d3331 commit fc677e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/socketio-stubs/_types.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from collections.abc import Mapping, Sequence
12
from contextlib import AbstractAsyncContextManager, AbstractContextManager
23
from threading import Event as ThreadingEvent
34
from types import ModuleType
@@ -15,9 +16,9 @@ from socketio.server import Server
1516
from typing_extensions import NotRequired, Required, TypedDict
1617

1718
JsonType: TypeAlias = (
18-
str | int | float | bool | None | list[JsonType] | dict[str, JsonType]
19+
str | int | float | bool | None | Sequence[JsonType] | Mapping[str, JsonType]
1920
)
20-
DataType: TypeAlias = str | bytes | list[JsonType] | dict[JsonType, JsonType]
21+
DataType: TypeAlias = str | bytes | Sequence[JsonType] | Mapping[JsonType, JsonType]
2122
TransportType: TypeAlias = Literal["websocket", "polling"]
2223
SocketIOModeType: TypeAlias = Literal["development", "production"]
2324
SyncAsyncModeType: TypeAlias = Literal[

0 commit comments

Comments
 (0)