From 2ebf3564eda40c656e0414cb4607fd5851d60f46 Mon Sep 17 00:00:00 2001 From: Samuel GIFFARD Date: Tue, 5 Dec 2023 20:26:57 +0100 Subject: [PATCH] ci: Run mypy on all CPython versions (#273) --- .github/workflows/build.yml | 2 +- requirements_test.txt | 2 +- tests/test_pubsub.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b83d245..b8666c0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -119,7 +119,7 @@ jobs: run: black --check . - name: Check with mypy - if: ${{ !startsWith(matrix.python-version, 'pypy') && matrix.python-version >= '3.7' }} + if: ${{ !startsWith(matrix.python-version, 'pypy') }} run: mypy - name: Lint with flake8 diff --git a/requirements_test.txt b/requirements_test.txt index 58e630b..d123263 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,7 +1,7 @@ pytest coverage==5.5 black==23.3.0 -typing-extensions==4.5.0 +typing-extensions==4.7.1 # Only for CPython (exclude pypy). celery-types==0.14.0; implementation_name != 'pypy' diff --git a/tests/test_pubsub.py b/tests/test_pubsub.py index 07a8707..febdf89 100644 --- a/tests/test_pubsub.py +++ b/tests/test_pubsub.py @@ -19,7 +19,6 @@ from celery_pubsub import publish, unsubscribe, publish_now P = ParamSpec("P") -R = typing.TypeVar("R") def test_subscription(job_c: Task[P, str], celery_worker: WorkController) -> None: