From 1532b085c9da58a8752fc8ddd147d07e80b47ded Mon Sep 17 00:00:00 2001 From: Shashank Srikanth Date: Tue, 17 Mar 2026 17:00:21 -0700 Subject: [PATCH 1/2] release: 2.19.22 Co-Authored-By: Claude Opus 4.6 (1M context) --- metaflow/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metaflow/version.py b/metaflow/version.py index cc4358830e7..00febd1add2 100644 --- a/metaflow/version.py +++ b/metaflow/version.py @@ -1 +1 @@ -metaflow_version = "2.19.21" +metaflow_version = "2.19.22" From 0cbee51d9022842ca8d9b917fe6c7482ca8d9d08 Mon Sep 17 00:00:00 2001 From: Shashank Srikanth Date: Thu, 19 Mar 2026 11:00:15 -0700 Subject: [PATCH 2/2] fix: handle pytest-mypy-plugins 4.0.0 removing --mypy-only-local-stub flag pytest-mypy-plugins 4.0.0 (Python >=3.10 only) removed the --mypy-only-local-stub flag, making it the default behavior. Use the new plugin version for Python 3.10+ and the old version for earlier Pythons, conditionalizing both the install and the test command. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/test-stubs.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-stubs.yml b/.github/workflows/test-stubs.yml index 543d954bf0c..c517e72ba65 100644 --- a/.github/workflows/test-stubs.yml +++ b/.github/workflows/test-stubs.yml @@ -42,7 +42,11 @@ jobs: - name: Install Python ${{ matrix.ver }} dependencies run: | python3 -m pip install --upgrade pip setuptools - python3 -m pip install pytest build "mypy<1.9" pytest-mypy-plugins + if python3 -c "import sys; exit(0 if sys.version_info >= (3,10) else 1)"; then + python3 -m pip install pytest build "mypy<1.9" "pytest-mypy-plugins>=4" + else + python3 -m pip install pytest build "mypy<1.9" "pytest-mypy-plugins<4" + fi - name: Install metaflow run: pip install . @@ -66,4 +70,10 @@ jobs: max_attempts: 2 timeout_minutes: 3 retry_on: error - command: cd ./stubs && pytest --mypy-ini-file test/mypy_${{ matrix.ver }}.cfg --mypy-only-local-stub && cd - + command: | + cd ./stubs + if python3 -c "import sys; exit(0 if sys.version_info >= (3,10) else 1)"; then + pytest --mypy-ini-file test/mypy_${{ matrix.ver }}.cfg + else + pytest --mypy-ini-file test/mypy_${{ matrix.ver }}.cfg --mypy-only-local-stub + fi