Skip to content

Commit 37307b0

Browse files
committed
fix Ruff errors
1 parent 31a648f commit 37307b0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

python/datafusion/context.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121

2222
import warnings
2323
from typing import TYPE_CHECKING, Any, Protocol
24-
from collections.abc import Sequence
25-
26-
import pyarrow as pa
2724

2825
try:
2926
from warnings import deprecated # Python 3.13+
3027
except ImportError:
3128
from typing_extensions import deprecated # Python 3.12
3229

30+
import pyarrow as pa
31+
3332
from datafusion.catalog import Catalog, CatalogProvider, Table
3433
from datafusion.dataframe import DataFrame
3534
from datafusion.expr import SortKey, sort_list_to_raw_sort_list
@@ -44,9 +43,10 @@
4443

4544
if TYPE_CHECKING:
4645
import pathlib
46+
from collections.abc import Sequence
4747

4848
import pandas as pd
49-
import polars as pl
49+
import polars as pl # type: ignore[import]
5050

5151
from datafusion.plan import ExecutionPlan, LogicalPlan
5252

python/datafusion/expr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from __future__ import annotations
2424

2525
from typing import TYPE_CHECKING, Any, ClassVar, Iterable, Optional
26-
from collections.abc import Sequence
2726

2827
import pyarrow as pa
2928

@@ -38,6 +37,9 @@
3837
from ._internal import functions as functions_internal
3938

4039
if TYPE_CHECKING:
40+
from collections.abc import Sequence
41+
42+
from datafusion.common import DataTypeMap, RexType
4143
from datafusion.plan import LogicalPlan
4244

4345

0 commit comments

Comments
 (0)