From e3158fdf59a7c92a9449a566a2b746a4024e582f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Tue, 26 Apr 2022 01:55:33 +0300 Subject: Fixed return type annotation of AsyncpgEventBroker.__aenter__() --- src/apscheduler/eventbrokers/asyncpg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/apscheduler/eventbrokers/asyncpg.py b/src/apscheduler/eventbrokers/asyncpg.py index cc485db..d97c229 100644 --- a/src/apscheduler/eventbrokers/asyncpg.py +++ b/src/apscheduler/eventbrokers/asyncpg.py @@ -47,7 +47,7 @@ class AsyncpgEventBroker(LocalAsyncEventBroker, DistributedEventBrokerMixin): return cls(connection_factory) - async def __aenter__(self) -> LocalAsyncEventBroker: + async def __aenter__(self) -> AsyncpgEventBroker: await super().__aenter__() await self._task_group.start(self._listen_notifications) self._exit_stack.callback(self._task_group.cancel_scope.cancel) -- cgit v1.2.1