Skip to content

Commit 217adc8

Browse files
committed
CLN: added type hint for mypy to test_coercion.py
1 parent 008fe48 commit 217adc8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pandas/tests/indexing/test_coercion.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import itertools
2+
from typing import Any, Dict, List
23

34
import numpy as np
45
import pytest
@@ -928,7 +929,7 @@ class TestReplaceSeriesCoercion(CoercionBase):
928929
klasses = ["series"]
929930
method = "replace"
930931

931-
rep = {}
932+
rep = {} # type: Dict[str, List[Any]]
932933
rep["object"] = ["a", "b"]
933934
rep["int64"] = [4, 5]
934935
rep["float64"] = [1.1, 2.2]

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,6 @@ ignore_errors=True
199199
[mypy-pandas.tests.indexes.timedeltas.test_timedelta]
200200
ignore_errors=True
201201

202-
[mypy-pandas.tests.indexing.test_coercion]
203-
ignore_errors=True
204-
205202
[mypy-pandas.tests.indexing.test_loc]
206203
ignore_errors=True
207204

0 commit comments

Comments
 (0)