Skip to content

Commit 9a80b21

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 89dcb62 commit 9a80b21

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

stubs/channels/channels/utils.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ from asgiref.typing import ASGIApplication, ASGIReceiveCallable
66

77
def name_that_thing(thing: object) -> str: ...
88
async def await_many_dispatch(
9-
consumer_callables: Sequence[Callable[[], Awaitable[ASGIReceiveCallable]]], dispatch: Callable[[dict[str, Any]], Awaitable[None]]
9+
consumer_callables: Sequence[Callable[[], Awaitable[ASGIReceiveCallable]]],
10+
dispatch: Callable[[dict[str, Any]], Awaitable[None]],
1011
) -> None: ...
1112

1213
# Defines a generic ASGI middleware protocol.

stubs/channels/channels/worker.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ class Worker(StatelessServer):
99
channel_layer: BaseChannelLayer
1010

1111
def __init__(
12-
self, application: _ChannelApplication, channels: Collection[str], channel_layer: BaseChannelLayer, max_applications: int = 1000
12+
self,
13+
application: _ChannelApplication,
14+
channels: Collection[str],
15+
channel_layer: BaseChannelLayer,
16+
max_applications: int = 1000,
1317
) -> None: ...
1418
async def handle(self) -> None: ...
1519
async def listener(self, channel: str) -> None: ...

0 commit comments

Comments
 (0)