Skip to content

Commit d8cab41

Browse files
committed
add type hints
1 parent 19e6625 commit d8cab41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/datafusion/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,12 +623,12 @@ def sql(
623623
DataFrame representation of the SQL query.
624624
"""
625625

626-
def value_to_scalar(value) -> pa.Scalar:
626+
def value_to_scalar(value: Any) -> pa.Scalar:
627627
if isinstance(value, pa.Scalar):
628628
return value
629629
return pa.scalar(value)
630630

631-
def value_to_string(value) -> str:
631+
def value_to_string(value: Any) -> str:
632632
if isinstance(value, DataFrame):
633633
view_name = str(uuid.uuid4()).replace("-", "_")
634634
view_name = f"view_{view_name}"

0 commit comments

Comments
 (0)