Skip to content

Commit 74d9cdb

Browse files
committed
fix: DataType
1 parent dc954c6 commit 74d9cdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/socketio-stubs/_types.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ from socketio.admin import InstrumentedServer
1414
from socketio.server import Server
1515
from typing_extensions import NotRequired, Required, TypedDict
1616

17-
DataType: TypeAlias = str | bytes | list[Incomplete] | dict[Incomplete, Incomplete]
17+
JsonType: TypeAlias = (
18+
str | int | float | bool | None | list[JsonType] | dict[str, JsonType]
19+
)
20+
DataType: TypeAlias = str | bytes | list[JsonType] | dict[JsonType, JsonType]
1821
TransportType: TypeAlias = Literal["websocket", "polling"]
1922
SocketIOModeType: TypeAlias = Literal["development", "production"]
2023
SyncAsyncModeType: TypeAlias = Literal[

0 commit comments

Comments
 (0)