Avoid installing Mypy as part of the tests extra: installation fails
because a binary librt is not available. As a consequence, avoid running
Mypy-based tests in test CI jobs on PyPy.
- name: Exclude certain tests from pypy
if: ${{ startsWith(matrix.python, 'pypy') }}
run: |
- echo "NOT_MARKERS=$NOT_MARKERS timing" >> $GITHUB_ENV
+ echo "NOT_MARKERS=$NOT_MARKERS timing mypy" >> $GITHUB_ENV
- name: Configure to use the oldest dependencies
if: ${{ matrix.ext == 'min' }}
]
test = [
"anyio >= 4.0",
- "mypy >= 1.18.1",
+ # Mypy >= 1.19 depends on librt, not available for PyPy.
+ "mypy >= 1.19.0; implementation_name != \"pypy\"",
"pproxy >= 2.7",
"pytest >= 6.2.5",
"pytest-cov >= 3.0",
"flake8 >= 4.0",
"isort[colors] >= 6.0",
"isort-psycopg",
- "mypy >= 1.18.1",
+ "mypy >= 1.19.0",
"pre-commit >= 4.0.1",
"types-setuptools >= 57.4",
"types-shapely >= 2.0",
"""
__slots__ = () # Give the class the same memory layout of the base clasee
- __setattr__ = object.__setattr__ # make the class writable
+
+ # Make the class writable.
+ __setattr__ = object.__setattr__ # type: ignore[assignment]
# From the 'test' extra
anyio == 4.0
-mypy == 1.18.1
+mypy == 1.19.0
pproxy == 2.7.0
pytest == 6.2.5
pytest-cov == 3.0.0