|
29 | 29 | import math |
30 | 30 | from collections import defaultdict |
31 | 31 | from types import MappingProxyType |
32 | | -from typing import TYPE_CHECKING, Any, Literal, NamedTuple, Self, Unpack |
| 32 | +from typing import TYPE_CHECKING, Any, Literal, NamedTuple, Self, Unpack, overload |
33 | 33 |
|
34 | 34 | from .authentication import ManagedHTTPClient, Scopes, UserTokenPayload |
35 | 35 | from .eventsub.enums import SubscriptionType |
@@ -3533,6 +3533,16 @@ async def _multi_sub(self, subscriptions: list[SubscriptionPayload], *, stop_on_ |
3533 | 3533 |
|
3534 | 3534 | return MultiSubscribePayload(success=success, errors=errors) |
3535 | 3535 |
|
| 3536 | + @overload |
| 3537 | + async def multi_subscribe( |
| 3538 | + self, subscriptions: list[SubscriptionPayload], *, wait: Literal[True] = True, stop_on_error: bool = False |
| 3539 | + ) -> MultiSubscribePayload: ... |
| 3540 | + |
| 3541 | + @overload |
| 3542 | + async def multi_subscribe( |
| 3543 | + self, subscriptions: list[SubscriptionPayload], *, wait: Literal[False] = False, stop_on_error: bool = False |
| 3544 | + ) -> asyncio.Task[MultiSubscribePayload]: ... |
| 3545 | + |
3536 | 3546 | async def multi_subscribe( |
3537 | 3547 | self, subscriptions: list[SubscriptionPayload], *, wait: bool = True, stop_on_error: bool = False |
3538 | 3548 | ) -> MultiSubscribePayload | asyncio.Task[MultiSubscribePayload]: |
|
0 commit comments