Skip to content

Commit f340905

Browse files
Update mypy to 1.17.0 (#1279)
1 parent 3edd3b3 commit f340905

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ types-pytz = ">= 2022.1.1"
3535
numpy = ">= 1.23.5"
3636

3737
[tool.poetry.group.dev.dependencies]
38-
mypy = "1.16.0"
38+
mypy = "1.17.0"
3939
pandas = "2.3.0"
4040
pyarrow = ">=10.0.1"
4141
pytest = ">=7.1.2"

tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def check(
6464
if not isinstance(actual, klass):
6565
raise RuntimeError(f"Expected type '{klass}' but got '{type(actual)}'")
6666
if dtype is None:
67-
return actual # type: ignore[return-value]
67+
return actual
6868

6969
if isinstance(actual, pd.Series):
7070
value = actual.iloc[index_to_check_for_type]
@@ -82,7 +82,7 @@ def check(
8282

8383
if not isinstance(value, dtype):
8484
raise RuntimeError(f"Expected type '{dtype}' but got '{type(value)}'")
85-
return actual # type: ignore[return-value]
85+
return actual
8686

8787

8888
def pytest_warns_bounded(

0 commit comments

Comments
 (0)