Skip to content

Commit 8d361ce

Browse files
committed
import pd for type checking
1 parent 343bff2 commit 8d361ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqlmesh/magics.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
from hyperscript import h
1414

15+
if t.TYPE_CHECKING:
16+
import pandas as pd
17+
1518
try:
1619
from IPython.core.display import display # type: ignore
1720
except ImportError:
@@ -1195,7 +1198,7 @@ def destroy(self, context: Context, line: str) -> None:
11951198
"""Removes all project resources, engine-managed objects, state tables and clears the SQLMesh cache."""
11961199
context.destroy()
11971200

1198-
def _fetchdf_athena_pandas_cursor(self, context: Context, sql: str) -> "pd.DataFrame":
1201+
def _fetchdf_athena_pandas_cursor(self, context: Context, sql: str) -> pd.DataFrame:
11991202
"""Special implementation for Athena using PandasCursor with SQLGlot transpilation"""
12001203

12011204
try:

0 commit comments

Comments
 (0)