diff --git a/.github/workflows/type-checking.yaml b/.github/workflows/type-checking.yaml index 3c7f7307d2..83713c2bc0 100644 --- a/.github/workflows/type-checking.yaml +++ b/.github/workflows/type-checking.yaml @@ -7,7 +7,8 @@ on: pull_request: paths: - yt/**/*.py - - setup.cfg + - pyproject.toml + - requirements/typecheck.txt - .github/workflows/type-checking.yaml workflow_dispatch: diff --git a/pyproject.toml b/pyproject.toml index 8a562a27a7..08d31233d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,7 +81,7 @@ answer-testing = "yt.utilities.answer_testing.framework:AnswerTesting" [project.optional-dependencies] # some generic, reusable constraints on optional-deps -HDF5 = ["h5py>=3.1.0"] +HDF5 = ["h5py>=3.1.0,!=3.12.0; platform_system=='Windows'"] # see https://github.com/h5py/h5py/issues/2505 netCDF4 = ["netCDF4!=1.6.1,>=1.5.3"] # see https://github.com/Unidata/netcdf4-python/issues/1192 Fortran = ["f90nml>=1.1"] diff --git a/requirements/typecheck.txt b/requirements/typecheck.txt index 3edda47449..f116cfe1d5 100644 --- a/requirements/typecheck.txt +++ b/requirements/typecheck.txt @@ -2,4 +2,4 @@ mypy==1.11.2 types-PyYAML==6.0.12.20240808 types-chardet==5.0.4.6 types-requests==2.32.0.20240907 -typing-extensions==4.4.0; python_version < '3.12' +typing-extensions==4.6.0; python_version < '3.12' diff --git a/yt/data_objects/construction_data_containers.py b/yt/data_objects/construction_data_containers.py index a406018925..38deeb9bbc 100644 --- a/yt/data_objects/construction_data_containers.py +++ b/yt/data_objects/construction_data_containers.py @@ -1426,7 +1426,7 @@ class YTSmoothedCoveringGrid(YTCoveringGrid): filename = None _min_level = None - @wraps(YTCoveringGrid.__init__) + @wraps(YTCoveringGrid.__init__) # type: ignore [misc] def __init__(self, *args, **kwargs): ds = kwargs["ds"] self._base_dx = (