|
1 | 1 | import asyncio |
2 | | -from collections.abc import AsyncGenerator, Callable, Coroutine |
| 2 | +from collections.abc import AsyncGenerator, Awaitable, Callable, Coroutine |
3 | 3 | from contextlib import AsyncExitStack, asynccontextmanager |
4 | 4 | from dataclasses import dataclass, field |
5 | 5 | from functools import partial |
| 6 | +import inspect |
6 | 7 | from ssl import SSLContext |
7 | 8 | from types import TracebackType |
8 | 9 | from typing import ClassVar, Literal, Self |
@@ -144,15 +145,15 @@ async def subscribe( |
144 | 145 | ack: AckMode = "client-individual", |
145 | 146 | headers: dict[str, str] | None = None, |
146 | 147 | on_suppressed_exception: Callable[[Exception, MessageFrame], None], |
147 | | - supressed_exception_classes: tuple[type[Exception], ...] = (Exception,), |
| 148 | + suppressed_exception_classes: tuple[type[Exception], ...] = (Exception,), |
148 | 149 | ) -> "Subscription": |
149 | 150 | subscription = Subscription( |
150 | 151 | destination=destination, |
151 | 152 | handler=handler, |
152 | 153 | headers=headers, |
153 | 154 | ack=ack, |
154 | 155 | on_suppressed_exception=on_suppressed_exception, |
155 | | - supressed_exception_classes=supressed_exception_classes, |
| 156 | + suppressed_exception_classes=suppressed_exception_classes, |
156 | 157 | _connection_manager=self._connection_manager, |
157 | 158 | _active_subscriptions=self._active_subscriptions, |
158 | 159 | ) |
|
0 commit comments