Skip to content

Commit 4aa6c7e

Browse files
committed
fix ruff errors
1 parent 1c5b91e commit 4aa6c7e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

python/datafusion/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def utf8_literal(value: str) -> Expr:
394394
if isinstance(value, str):
395395
value = pa.scalar(value, type=pa.string())
396396
return Expr(expr_internal.Expr.literal(value))
397-
return literal(value)
397+
return Expr.literal(value)
398398

399399
@staticmethod
400400
def column(value: str) -> Expr:

python/tests/test_functions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
from datafusion import SessionContext, column
2525
from datafusion import functions as f
2626
from datafusion import literal, utf8_literal
27-
from datafusion import Expr
28-
from datafusion.expr import expr_internal
2927

3028
np.seterr(invalid="ignore")
3129

0 commit comments

Comments
 (0)