Skip to content

Commit 3f8cf8a

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 0b64efd commit 3f8cf8a

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

repid/connections/abc.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
TypeVar,
1111
)
1212

13+
from typing_extensions import Self
14+
1315
from repid.config import Config
1416
from repid.message import MessageCategory
1517
from repid.middlewares import middleware_wrapper
@@ -26,10 +28,10 @@ class _WrappedABC(ABC): # noqa: B024
2628
__WRAPPED_METHODS__: tuple[str, ...] = ()
2729

2830
def __new__(
29-
cls: type[WrappedABCSelf],
30-
*args: Any, # noqa: ARG003
31-
**kwargs: Any, # noqa: ARG003
32-
) -> WrappedABCSelf:
31+
cls,
32+
*args: Any,
33+
**kwargs: Any,
34+
) -> Self:
3335
inst = super().__new__(cls)
3436

3537
for method in inst.__WRAPPED_METHODS__:
@@ -184,7 +186,7 @@ async def queue_delete(self, queue_name: str) -> None:
184186

185187
def __new__( # noqa: PYI034
186188
cls: type[MessageBrokerT],
187-
*args: Any, # noqa: ARG003
189+
*args: Any,
188190
**kwargs: Any, # noqa: ARG003s
189191
) -> MessageBrokerT:
190192
cls.ROUTING_KEY_CLASS = deepcopy(Config.ROUTING_KEY)
@@ -222,8 +224,8 @@ async def delete_bucket(self, id_: str) -> None:
222224

223225
def __new__( # noqa: PYI034
224226
cls: type[BucketBrokerT],
225-
*args: Any, # noqa: ARG003
226-
**kwargs: Any, # noqa: ARG003
227+
*args: Any,
228+
**kwargs: Any,
227229
) -> BucketBrokerT:
228230
cls.BUCKET_CLASS = deepcopy(Config.BUCKET)
229231

repid/testing/modifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, parent: MessageBrokerT | BucketBrokerT) -> None:
4040

4141
def consumer_class_wrapper(self, class_: type[ConsumerT]) -> type[ConsumerT]:
4242
class ConsumerWrapper(class_): # type: ignore[valid-type,misc]
43-
def __new__(cls, *args: Any, **kwargs: Any) -> Any: # noqa: ARG003
43+
def __new__(cls, *args: Any, **kwargs: Any) -> Any:
4444
inst = super().__new__(cls)
4545

4646
for method in inst.__WRAPPED_METHODS__:

0 commit comments

Comments
 (0)