From 217adc84dc69045c566ec2c510ae11e1d531bbac Mon Sep 17 00:00:00 2001 From: Lukas Bentkamp Date: Tue, 15 Oct 2019 10:02:25 +0200 Subject: [PATCH] CLN: added type hint for mypy to test_coercion.py --- pandas/tests/indexing/test_coercion.py | 3 ++- setup.cfg | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py index 05b58b0eca9b8..dd0d310616142 100644 --- a/pandas/tests/indexing/test_coercion.py +++ b/pandas/tests/indexing/test_coercion.py @@ -1,4 +1,5 @@ import itertools +from typing import Any, Dict, List import numpy as np import pytest @@ -928,7 +929,7 @@ class TestReplaceSeriesCoercion(CoercionBase): klasses = ["series"] method = "replace" - rep = {} + rep = {} # type: Dict[str, List[Any]] rep["object"] = ["a", "b"] rep["int64"] = [4, 5] rep["float64"] = [1.1, 2.2] diff --git a/setup.cfg b/setup.cfg index 9af7215b1dc56..a615d938de829 100644 --- a/setup.cfg +++ b/setup.cfg @@ -199,9 +199,6 @@ ignore_errors=True [mypy-pandas.tests.indexes.timedeltas.test_timedelta] ignore_errors=True -[mypy-pandas.tests.indexing.test_coercion] -ignore_errors=True - [mypy-pandas.tests.indexing.test_loc] ignore_errors=True