|
52 | 52 |
|
53 | 53 | if TYPE_CHECKING: |
54 | 54 | import datetime |
55 | | - from collections.abc import Awaitable, Callable, Coroutine |
| 55 | + from collections.abc import Awaitable, Callable, Collection, Coroutine |
56 | 56 |
|
57 | 57 | import aiohttp |
58 | 58 |
|
@@ -3496,7 +3496,9 @@ def conduit_info(self) -> ConduitInfo: |
3496 | 3496 | """ |
3497 | 3497 | return self._conduit_info |
3498 | 3498 |
|
3499 | | - async def _multi_sub(self, subscriptions: list[SubscriptionPayload], *, stop_on_error: bool) -> MultiSubscribePayload: |
| 3499 | + async def _multi_sub( |
| 3500 | + self, subscriptions: Collection[SubscriptionPayload], *, stop_on_error: bool |
| 3501 | + ) -> MultiSubscribePayload: |
3500 | 3502 | assert self._conduit_info.conduit |
3501 | 3503 |
|
3502 | 3504 | conduit = self._conduit_info.conduit |
@@ -3535,16 +3537,20 @@ async def _multi_sub(self, subscriptions: list[SubscriptionPayload], *, stop_on_ |
3535 | 3537 |
|
3536 | 3538 | @overload |
3537 | 3539 | async def multi_subscribe( |
3538 | | - self, subscriptions: list[SubscriptionPayload], *, wait: Literal[True] = True, stop_on_error: bool = False |
| 3540 | + self, subscriptions: Collection[SubscriptionPayload], *, wait: Literal[True] = True, stop_on_error: bool = False |
3539 | 3541 | ) -> MultiSubscribePayload: ... |
3540 | 3542 |
|
3541 | 3543 | @overload |
3542 | 3544 | async def multi_subscribe( |
3543 | | - self, subscriptions: list[SubscriptionPayload], *, wait: Literal[False] = False, stop_on_error: bool = False |
| 3545 | + self, subscriptions: Collection[SubscriptionPayload], *, wait: Literal[False] = False, stop_on_error: bool = False |
3544 | 3546 | ) -> asyncio.Task[MultiSubscribePayload]: ... |
3545 | 3547 |
|
3546 | 3548 | async def multi_subscribe( |
3547 | | - self, subscriptions: list[SubscriptionPayload], *, wait: bool = True, stop_on_error: bool = False |
| 3549 | + self, |
| 3550 | + subscriptions: Collection[SubscriptionPayload], |
| 3551 | + *, |
| 3552 | + wait: bool = True, |
| 3553 | + stop_on_error: bool = False, |
3548 | 3554 | ) -> MultiSubscribePayload | asyncio.Task[MultiSubscribePayload]: |
3549 | 3555 | """|coro| |
3550 | 3556 |
|
|
0 commit comments