Skip to content

Commit 0960c84

Browse files
authored
Remove condition import for SQLAlcRow (#2146)
since airflow is pin to >2.7.0 remove conditional import https://github.com/astronomer/astro-sdk/blob/main/python-sdk/pyproject.toml#L20
1 parent 6b03bd4 commit 0960c84

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

python-sdk/src/astro/sql/operators/raw_sql.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@
99
except ImportError: # pragma: no cover
1010
from airflow.decorators import _TaskDecorator as TaskDecorator # type: ignore[attr-defined]
1111

12-
import airflow
1312
import pandas as pd
1413
from airflow.decorators.base import task_decorator_factory
1514
from sqlalchemy.engine import ResultProxy
16-
17-
if airflow.__version__ >= "2.3":
18-
from sqlalchemy.engine.row import LegacyRow as SQLAlcRow
19-
else:
20-
from sqlalchemy.engine.result import RowProxy as SQLAlcRow
15+
from sqlalchemy.engine.row import LegacyRow as SQLAlcRow
2116

2217
from astro import settings
2318
from astro.constants import RunRawSQLResultFormat

0 commit comments

Comments
 (0)