From 00bdfcdd083f6045d058d0cfad330dd378e65c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Sat, 21 Dec 2024 14:35:19 -0800 Subject: [PATCH] Import Self from typing_extensions --- .github/workflows/test.yml | 3 +++ src/lvmopstools/pubsub.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc00291..7f2c42e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,6 +45,9 @@ jobs: run: | uv pip install pytest pytest-mock pytest-asyncio pytest-cov uv run pytest + env: + PYTEST_RABBITMQ_CTL: '/usr/lib/rabbitmq/bin/rabbitmqctl' + PYTEST_RABBITMQ_SERVER: '/usr/lib/rabbitmq/bin/rabbitmq-server' - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/src/lvmopstools/pubsub.py b/src/lvmopstools/pubsub.py index 301dc1d..efa1b93 100644 --- a/src/lvmopstools/pubsub.py +++ b/src/lvmopstools/pubsub.py @@ -21,13 +21,13 @@ Callable, ClassVar, Literal, - Self, overload, ) import aio_pika from aio_pika.abc import AbstractIncomingMessage from pydantic import BaseModel, Field +from typing_extensions import Self from lvmopstools import config from lvmopstools.retrier import Retrier