Skip to content

Commit c479099

Browse files
committed
fix: TransportType -> list[TransportType]
1 parent 14c6d84 commit c479099

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/socketio-stubs/async_client.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AsyncClient(BaseClient[Literal[True], engineio.AsyncClient]):
1818
connection_url: str # pyright: ignore[reportIncompatibleVariableOverride]
1919
connection_headers: dict[Incomplete, Incomplete] # pyright: ignore[reportIncompatibleVariableOverride]
2020
connection_auth: Incomplete | None
21-
connection_transports: TransportType | None
21+
connection_transports: list[TransportType] | None
2222
connection_namespaces: list[str]
2323
socketio_path: str # pyright: ignore[reportIncompatibleVariableOverride]
2424
namespaces: dict[str, str | None]
@@ -49,7 +49,7 @@ class AsyncClient(BaseClient[Literal[True], engineio.AsyncClient]):
4949
url: str,
5050
headers: dict[Incomplete, Incomplete] = ...,
5151
auth: Incomplete | None = ...,
52-
transports: TransportType | None = ...,
52+
transports: list[TransportType] | None = ...,
5353
namespaces: str | list[str] | None = ...,
5454
socketio_path: str = ...,
5555
wait: bool = ...,

src/socketio-stubs/async_server.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class AsyncServer(
5252
cors_allowed_origins: str | list[str] | None = ...,
5353
cors_credentials: bool = ...,
5454
monitor_clients: bool = ...,
55-
transport: TransportType | None = ...,
55+
transport: list[TransportType] | None = ...,
5656
engineio_logger: logging.Logger | bool = ...,
5757
**kwargs: Incomplete,
5858
) -> None: ...

src/socketio-stubs/async_simple_client.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AsyncSimpleClient:
2424
url: str,
2525
headers: dict[Incomplete, Incomplete] = ...,
2626
auth: Incomplete | None = ...,
27-
transports: TransportType | None = ...,
27+
transports: list[TransportType] | None = ...,
2828
namespace: str = ...,
2929
socketio_path: str = ...,
3030
wait_timeout: int = ...,

src/socketio-stubs/base_client.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class BaseClient(Generic[_IsAsyncio, _T_co]):
3636
connection_url: str | None
3737
connection_headers: dict[Incomplete, Incomplete] | None
3838
connection_auth: Incomplete | None
39-
connection_transports: TransportType | None
39+
connection_transports: list[TransportType] | None
4040
connection_namespaces: list[str]
4141
socketio_path: str | None
4242
sid: str | None

src/socketio-stubs/client.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Client(base_client.BaseClient[Literal[False], engineio.Client]):
1616
connection_url: str # pyright: ignore[reportIncompatibleVariableOverride]
1717
connection_headers: dict[Incomplete, Incomplete] # pyright: ignore[reportIncompatibleVariableOverride]
1818
connection_auth: Incomplete | None
19-
connection_transports: TransportType | None
19+
connection_transports: list[TransportType] | None
2020
connection_namespaces: list[str]
2121
socketio_path: str # pyright: ignore[reportIncompatibleVariableOverride]
2222
namespaces: dict[str, str | None]
@@ -47,7 +47,7 @@ class Client(base_client.BaseClient[Literal[False], engineio.Client]):
4747
url: str,
4848
headers: dict[Incomplete, Incomplete] = ...,
4949
auth: Incomplete | None = ...,
50-
transports: TransportType | None = ...,
50+
transports: list[TransportType] | None = ...,
5151
namespaces: str | list[str] | None = ...,
5252
socketio_path: str = ...,
5353
wait: bool = ...,

src/socketio-stubs/server.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Server(base_server.BaseServer[Literal[False], engineio.Server], Generic[_A
4646
cors_allowed_origins: str | list[str] | None = ...,
4747
cors_credentials: bool = ...,
4848
monitor_clients: bool = ...,
49-
transport: TransportType | None = ...,
49+
transport: list[TransportType] | None = ...,
5050
engineio_logger: logging.Logger | bool = ...,
5151
**kwargs: Incomplete,
5252
) -> None: ...

src/socketio-stubs/simple_client.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SimpleClient:
2323
url: str,
2424
headers: dict[Incomplete, Incomplete] = ...,
2525
auth: Incomplete | None = ...,
26-
transports: TransportType | None = ...,
26+
transports: list[TransportType] | None = ...,
2727
namespace: str = ...,
2828
socketio_path: str = ...,
2929
wait_timeout: int = ...,

0 commit comments

Comments
 (0)