From 518a36786116512227e6d1da38a17f8680cc8d37 Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Wed, 31 Dec 2025 05:33:36 +0100 Subject: [PATCH 1/2] chore(.github): switch the macOS job to macos-latest --- .github/workflows/ci-mac.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml index b8cf892..f3837f5 100644 --- a/.github/workflows/ci-mac.yml +++ b/.github/workflows/ci-mac.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: macos-13 + runs-on: macos-latest strategy: matrix: From a9fea8e91ad964ff120114cac227232040aec0cd Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Wed, 31 Dec 2025 05:35:44 +0100 Subject: [PATCH 2/2] fix(mypy): don't follow the elementpath import WHY: Fixes the issue: ``` /opt/hostedtoolcache/Python/3.13.11/x64/lib/python3.13/site-packages/elementpath/datatypes/untyped.py:68: error: Pattern matching is only supported in Python 3.10 and greater [syntax] ``` --- mypy.ini | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..c90b9fc --- /dev/null +++ b/mypy.ini @@ -0,0 +1,8 @@ +[mypy] + +# We ignore build folder but mypy still follows into the Python packages, +# in this case pydantic, starlette, selenium. +# This StackOverflow answers suggests a solution: +# https://stackoverflow.com/a/70367929/598057 +[mypy-elementpath.*] +follow_imports = skip