Skip to content

Commit c7306bc

Browse files
committed
fix: ruff errors
1 parent 8bfe491 commit c7306bc

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ignore = [
5252
# python-socketio
5353
"A001",
5454
"A002",
55+
"ASYNC109",
5556
]
5657
fixable = [
5758
"UP",

src/socketio-stubs/_types.pyi

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@ from collections.abc import Awaitable, Callable, Mapping, Sequence
22
from contextlib import AbstractAsyncContextManager, AbstractContextManager
33
from threading import Event as ThreadingEvent
44
from types import ModuleType
5-
from typing import Any, ClassVar, Concatenate, Literal, TypeAlias, overload
5+
from typing import (
6+
Any,
7+
ClassVar,
8+
Concatenate,
9+
Literal,
10+
NotRequired,
11+
Required,
12+
TypeAlias,
13+
overload,
14+
)
615

716
import engineio
817
from _typeshed import Incomplete
@@ -12,7 +21,7 @@ from engineio.async_drivers.gevent_uwsgi import Thread as GeventUWSGThread
1221
from engineio.async_drivers.threading import DaemonThread
1322
from engineio.socket import Socket
1423
from gevent.event import Event as GeventEvent
15-
from typing_extensions import NotRequired, Required, TypedDict
24+
from typing_extensions import TypedDict
1625

1726
from socketio.admin import InstrumentedServer
1827
from socketio.msgpack_packet import MsgPackPacket

src/socketio-stubs/async_simple_client.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import asyncio
22
import types
3-
from typing import Any, ClassVar, Literal
4-
5-
from typing_extensions import Self
3+
from typing import Any, ClassVar, Literal, Self
64

75
from socketio._types import DataType, TransportType
86
from socketio.async_client import AsyncClient

src/socketio-stubs/simple_client.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import types
22
from threading import Event
3-
from typing import Any, ClassVar, Literal
4-
5-
from typing_extensions import Self
3+
from typing import Any, ClassVar, Literal, Self
64

75
from socketio._types import DataType, TransportType
86
from socketio.client import Client

0 commit comments

Comments
 (0)