Skip to content

Commit addd085

Browse files
committed
fix: sort imports
1 parent 5a8cae7 commit addd085

26 files changed

+46
-20
lines changed

src/socketio-stubs/_types.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ from engineio.async_drivers.gevent_uwsgi import Thread as GeventUWSGThread
1212
from engineio.async_drivers.threading import DaemonThread
1313
from engineio.socket import Socket
1414
from gevent.event import Event as GeventEvent
15+
from typing_extensions import NotRequired, Required, TypedDict
16+
1517
from socketio.admin import InstrumentedServer
1618
from socketio.msgpack_packet import MsgPackPacket
1719
from socketio.server import Server
18-
from typing_extensions import NotRequired, Required, TypedDict
1920

2021
JsonType: TypeAlias = (
2122
str | int | float | bool | None | Sequence[JsonType] | Mapping[str, JsonType]

src/socketio-stubs/admin.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from collections.abc import Callable, Mapping, Sequence
22
from typing import Any, Generic
33

4+
from typing_extensions import TypeVar
5+
46
from socketio._types import (
57
BufferItem,
68
DataType,
@@ -11,7 +13,6 @@ from socketio._types import (
1113
SyncAsyncModeType,
1214
)
1315
from socketio.server import Server
14-
from typing_extensions import TypeVar
1516

1617
_A = TypeVar("_A", bound=SyncAsyncModeType, default=Any)
1718

src/socketio-stubs/asgi.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from collections.abc import Callable
22
from typing import Any
33

44
import engineio
5+
56
from socketio.async_server import AsyncServer
67

78
class ASGIApp(engineio.ASGIApp):

src/socketio-stubs/async_admin.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import asyncio
22
from collections.abc import Callable, Mapping, Sequence
33
from typing import Any, Generic
44

5+
from typing_extensions import TypeVar
6+
57
from socketio._types import (
68
AsyncAsyncModeType,
79
DataType,
@@ -10,7 +12,6 @@ from socketio._types import (
1012
)
1113
from socketio.admin import EventBuffer as EventBuffer
1214
from socketio.async_server import AsyncServer
13-
from typing_extensions import TypeVar
1415

1516
_A = TypeVar("_A", bound=AsyncAsyncModeType, default=Any)
1617

src/socketio-stubs/async_aiopika_manager.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from aio_pika.abc import (
55
AbstractRobustConnection,
66
AbstractRobustExchange,
77
)
8+
89
from socketio.async_pubsub_manager import AsyncPubSubManager
910

1011
class AsyncAioPikaManager(AsyncPubSubManager):

src/socketio-stubs/async_client.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from typing import Any, Literal, ParamSpec, TypeVar
55

66
import engineio
77
import requests
8+
89
from socketio._types import DataType, JsonModule, SerializerType, TransportType
910
from socketio.async_namespace import AsyncClientNamespace
1011
from socketio.base_client import BaseClient

src/socketio-stubs/async_namespace.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from collections.abc import Callable
22
from typing import Any, Generic, Literal, NoReturn, overload
33

4+
from typing_extensions import TypeVar
5+
46
from socketio._types import AsyncAsyncModeType, AsyncSessionContextManager, DataType
57
from socketio.async_client import AsyncClient
68
from socketio.async_server import AsyncServer
79
from socketio.base_namespace import BaseClientNamespace, BaseServerNamespace
8-
from typing_extensions import TypeVar
910

1011
_A = TypeVar("_A", bound=AsyncAsyncModeType, default=Any)
1112

src/socketio-stubs/async_redis_manager.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ from typing import Any
33

44
from redis.asyncio import Redis
55
from redis.asyncio.client import PubSub as RedisPubSub
6-
from socketio._types import RedisArgs
7-
from socketio.async_pubsub_manager import AsyncPubSubManager
86
from valkey.asyncio import Valkey
97
from valkey.asyncio.client import PubSub as ValkeyPubSub
108

9+
from socketio._types import RedisArgs
10+
from socketio.async_pubsub_manager import AsyncPubSubManager
11+
1112
def parse_redis_sentinel_url(
1213
url: str,
1314
) -> tuple[list[tuple[str, int]], str | None, RedisArgs]: ...

src/socketio-stubs/async_server.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ from aiohttp.web import Response as AiohttpResponse
1010
from engineio.async_drivers.asgi import ASGIApp as EngineIOASGIApp
1111
from sanic import Sanic
1212
from sanic.response import HTTPResponse as SanicHTTPResponse
13+
from tornado.web import Application as TornadoApplication
14+
from typing_extensions import TypeVar
15+
1316
from socketio._types import (
1417
AsyncAsyncModeType,
1518
AsyncSessionContextManager,
@@ -25,8 +28,6 @@ from socketio.async_manager import AsyncManager
2528
from socketio.async_namespace import AsyncNamespace
2629
from socketio.base_server import BaseServer
2730
from socketio.packet import Packet
28-
from tornado.web import Application as TornadoApplication
29-
from typing_extensions import TypeVar
3031

3132
_A = TypeVar("_A", bound=AsyncAsyncModeType, default=Any)
3233
_P = ParamSpec("_P")

src/socketio-stubs/async_simple_client.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import asyncio
22
import types
33
from typing import Any, ClassVar, Literal
44

5+
from typing_extensions import Self
6+
57
from socketio._types import DataType, TransportType
68
from socketio.async_client import AsyncClient
79
from socketio.client import Client
8-
from typing_extensions import Self
910

1011
class AsyncSimpleClient:
1112
client_class: ClassVar[type[AsyncClient]]

0 commit comments

Comments
 (0)