Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 15a2d0c

Browse files
committedSep 27, 2023
Fix import
1 parent 37e026b commit 15a2d0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎pandas/tests/io/test_sql.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
from io import StringIO
1313
from pathlib import Path
1414
import sqlite3
15+
from typing import TYPE_CHECKING
1516
import uuid
1617

1718
import numpy as np
1819
import pytest
19-
import sqlalchemy
2020

2121
from pandas._libs import lib
2222
import pandas.util._test_decorators as td
@@ -52,6 +52,9 @@
5252
read_sql_table,
5353
)
5454

55+
if TYPE_CHECKING:
56+
import sqlalchemy
57+
5558

5659
@pytest.fixture
5760
def sql_strings():
@@ -83,6 +86,7 @@ def sql_strings():
8386

8487

8588
def iris_table_metadata():
89+
import sqlalchemy
8690
from sqlalchemy import (
8791
Column,
8892
Double,

0 commit comments

Comments
 (0)
Please sign in to comment.