Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -583,7 +584,7 @@ class _TestSQLApi(PandasSQLTest):
"""

flavor = "sqlite"
mode = None
mode = None # type: Optional[str]

def setup_connect(self):
self.conn = self.connect()
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -1837,7 +1838,7 @@ class _TestSQLiteAlchemy:

"""

flavor = "sqlite"
flavor = "sqlite" # type: Optional[str]

@classmethod
def connect(cls):
Expand Down Expand Up @@ -1886,7 +1887,7 @@ class _TestMySQLAlchemy:

"""

flavor = "mysql"
flavor = "mysql" # type: Optional[str]

@classmethod
def connect(cls):
Expand Down Expand Up @@ -1955,7 +1956,7 @@ class _TestPostgreSQLAlchemy:

"""

flavor = "postgresql"
flavor = "postgresql" # type: Optional[str]

@classmethod
def connect(cls):
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down