diff --git a/CHANGELOG.md b/CHANGELOG.md index 58e3c1ae..e95a493d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.18.3 + +- Support and require `nptyping>=2.1.2` + ## 1.18.2 - Support and require `nptyping>=2.1.1` diff --git a/setup.cfg b/setup.cfg index 3d5ad2cd..56f32189 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,7 +43,7 @@ testing = covdefaults>=2.2 coverage>=6.3 diff-cover>=6.4 - nptyping>=2.1.1 + nptyping>=2.1.2 pytest>=7.1 pytest-cov>=3 sphobjinv>=2 diff --git a/tests/test_sphinx_autodoc_typehints.py b/tests/test_sphinx_autodoc_typehints.py index 98fb7e4a..e0376f92 100644 --- a/tests/test_sphinx_autodoc_typehints.py +++ b/tests/test_sphinx_autodoc_typehints.py @@ -241,39 +241,39 @@ def test_parse_annotation(annotation: Any, module: str, class_name: str, args: t # Internal tuple with following additional type cannot be flattened (specific to nptyping?) # These cases will fail if nptyping restructures its internal module hierarchy ( - nptyping.NDArray[nptyping.Shape["*"], nptyping.Float], # type: ignore # nptyping/issues/77 + nptyping.NDArray[nptyping.Shape["*"], nptyping.Float], ( ":py:class:`~nptyping.base_meta_classes.NDArray`\\[:py:class:`~nptyping.base_meta_classes.Shape`\\[*], " ":py:class:`~numpy.float64`]" ), ), ( - nptyping.NDArray[nptyping.Shape["64"], nptyping.Float], # type: ignore # nptyping/issues/77 + nptyping.NDArray[nptyping.Shape["64"], nptyping.Float], ( ":py:class:`~nptyping.base_meta_classes.NDArray`\\[:py:class:`~nptyping.base_meta_classes.Shape`\\[64]," " :py:class:`~numpy.float64`]" ), ), ( - nptyping.NDArray[nptyping.Shape["*, *"], nptyping.Float], # type: ignore # nptyping/issues/77 + nptyping.NDArray[nptyping.Shape["*, *"], nptyping.Float], ( ":py:class:`~nptyping.base_meta_classes.NDArray`\\[:py:class:`~nptyping.base_meta_classes.Shape`\\[*, " "*], :py:class:`~numpy.float64`]" ), ), ( - nptyping.NDArray[nptyping.Shape["*, ..."], nptyping.Float], # type: ignore # nptyping/issues/77 + nptyping.NDArray[nptyping.Shape["*, ..."], nptyping.Float], (":py:class:`~nptyping.base_meta_classes.NDArray`\\[:py:data:`~typing.Any`, :py:class:`~numpy.float64`]"), ), ( - nptyping.NDArray[nptyping.Shape["*, 3"], nptyping.Float], # type: ignore # nptyping/issues/77 + nptyping.NDArray[nptyping.Shape["*, 3"], nptyping.Float], ( ":py:class:`~nptyping.base_meta_classes.NDArray`\\[:py:class:`~nptyping.base_meta_classes.Shape`\\[*, 3" "], :py:class:`~numpy.float64`]" ), ), ( - nptyping.NDArray[nptyping.Shape["3, ..."], nptyping.Float], # type: ignore # nptyping/issues/77 + nptyping.NDArray[nptyping.Shape["3, ..."], nptyping.Float], ( ":py:class:`~nptyping.base_meta_classes.NDArray`\\[:py:class:`~nptyping.base_meta_classes.Shape`\\[3, " "...], :py:class:`~numpy.float64`]" diff --git a/tox.ini b/tox.ini index 7a5ad187..828be598 100644 --- a/tox.ini +++ b/tox.ini @@ -45,7 +45,7 @@ description = run type check on code base setenv = {tty:MYPY_FORCE_COLOR = 1} deps = - mypy==0.960 + mypy==0.961 types-docutils commands = mypy --python-version 3.10 src