Skip to content

Commit d124275

Browse files
committed
ran ruff
1 parent 069c4a3 commit d124275

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

python/datafusion/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def __init__(
499499
self.ctx = SessionContextInternal(config, runtime)
500500

501501
@classmethod
502-
def global_ctx(cls) -> "SessionContext":
502+
def global_ctx(cls) -> SessionContext:
503503
"""Retrieve the global context as a `SessionContext` wrapper.
504504
505505
Returns:
@@ -510,7 +510,7 @@ def global_ctx(cls) -> "SessionContext":
510510
wrapper.ctx = internal_ctx
511511
return wrapper
512512

513-
def enable_url_table(self) -> "SessionContext":
513+
def enable_url_table(self) -> SessionContext:
514514
"""Control if local files can be queried as tables.
515515
516516
Returns:

python/datafusion/io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323

2424
import pyarrow
2525

26+
from datafusion.context import SessionContext
2627
from datafusion.dataframe import DataFrame
2728
from datafusion.expr import Expr
2829

29-
from datafusion.context import SessionContext
30-
3130

3231
def read_parquet(
3332
path: str | pathlib.Path,

0 commit comments

Comments
 (0)