From 5ae0ecd2ea5b8d586465aa673d39ebfb4ba76f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Diridollou?= Date: Thu, 17 Jul 2025 09:40:00 -0400 Subject: [PATCH] Update mypy to 1.17.0 --- pyproject.toml | 2 +- tests/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 29239c33..71400163 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ types-pytz = ">= 2022.1.1" numpy = ">= 1.23.5" [tool.poetry.group.dev.dependencies] -mypy = "1.16.0" +mypy = "1.17.0" pandas = "2.3.0" pyarrow = ">=10.0.1" pytest = ">=7.1.2" diff --git a/tests/__init__.py b/tests/__init__.py index e0682a2d..c4a94e77 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -64,7 +64,7 @@ def check( if not isinstance(actual, klass): raise RuntimeError(f"Expected type '{klass}' but got '{type(actual)}'") if dtype is None: - return actual # type: ignore[return-value] + return actual if isinstance(actual, pd.Series): value = actual.iloc[index_to_check_for_type] @@ -82,7 +82,7 @@ def check( if not isinstance(value, dtype): raise RuntimeError(f"Expected type '{dtype}' but got '{type(value)}'") - return actual # type: ignore[return-value] + return actual def pytest_warns_bounded(