From f8d3b56578ead6c3ad81da2ca017eab083e5192d Mon Sep 17 00:00:00 2001 From: Aaditya Panikath Date: Tue, 15 Oct 2019 21:40:40 +0530 Subject: [PATCH] CLN: Fix mypy errors in pandas/tests/io/test_sql.py Reverted and added type changes --- pandas/tests/io/test_sql.py | 4 ++-- setup.cfg | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 7491cef17ebfc..183a47c6039ec 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -583,7 +583,7 @@ class _TestSQLApi(PandasSQLTest): """ flavor = "sqlite" - mode = None + mode = None # type: str def setup_connect(self): self.conn = self.connect() @@ -1234,7 +1234,7 @@ class _TestSQLAlchemy(SQLAlchemyMixIn, PandasSQLTest): """ - flavor = None + flavor = None # type: str @pytest.fixture(autouse=True, scope="class") def setup_class(cls): diff --git a/setup.cfg b/setup.cfg index 55d25abde585c..462e79dae1039 100644 --- a/setup.cfg +++ b/setup.cfg @@ -205,9 +205,6 @@ ignore_errors=True [mypy-pandas.tests.io.json.test_ujson] ignore_errors=True -[mypy-pandas.tests.io.test_sql] -ignore_errors=True - [mypy-pandas.tests.plotting.test_backend] ignore_errors=True