Skip to content

Commit 0082932

Browse files
committed
Fix: rearrange imports instead of suppressing lint
1 parent 3059674 commit 0082932

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎examples/datafusion-ffi-example/run_demo.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import sys
1010

11+
from datafusion import LogicalPlan, SessionConfig, SessionContext, udf
12+
1113
try:
1214
from datafusion_ffi_example import (
1315
IsNullUDF,
@@ -19,8 +21,6 @@
1921
except ImportError:
2022
sys.exit("build the extension first:\n uv run maturin develop\nSee README.md.")
2123

22-
from datafusion import LogicalPlan, SessionConfig, SessionContext, udf # noqa: I001, E402
23-
2424

2525
print("1. table provider")
2626
ctx = SessionContext()

‎examples/datafusion-ffi-query-planner-example/run_demo.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import sys
1010

11+
from datafusion import SessionConfig, SessionContext
12+
1113
try:
1214
from datafusion_ffi_query_planner_example import (
1315
MyPlannerConfig,
@@ -16,8 +18,6 @@
1618
except ImportError:
1719
sys.exit("build the extension first:\n uv run maturin develop\nSee README.md.")
1820

19-
from datafusion import SessionConfig, SessionContext # noqa: I001, E402
20-
2121

2222
print("1. logical plan")
2323
config = SessionConfig().with_extension(MyPlannerConfig(max_rows=5))

0 commit comments

Comments
 (0)