diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 7491cef17ebfc..e7f10f1b5ab07 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -21,6 +21,7 @@ from datetime import date, datetime, time from io import StringIO import sqlite3 +from typing import Optional import warnings import numpy as np @@ -583,7 +584,7 @@ class _TestSQLApi(PandasSQLTest): """ flavor = "sqlite" - mode = None + mode = None # type: Optional[str] def setup_connect(self): self.conn = self.connect() @@ -1234,7 +1235,7 @@ class _TestSQLAlchemy(SQLAlchemyMixIn, PandasSQLTest): """ - flavor = None + flavor = None # type: Optional[str] @pytest.fixture(autouse=True, scope="class") def setup_class(cls): @@ -1837,7 +1838,7 @@ class _TestSQLiteAlchemy: """ - flavor = "sqlite" + flavor = "sqlite" # type: Optional[str] @classmethod def connect(cls): @@ -1886,7 +1887,7 @@ class _TestMySQLAlchemy: """ - flavor = "mysql" + flavor = "mysql" # type: Optional[str] @classmethod def connect(cls): @@ -1955,7 +1956,7 @@ class _TestPostgreSQLAlchemy: """ - flavor = "postgresql" + flavor = "postgresql" # type: Optional[str] @classmethod def connect(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