Skip to content

Commit f149f13

Browse files
committed
docs: clarify udf return_field type
1 parent baf5cbb commit f149f13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/datafusion/user_defined.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ def udf(*args: Any, **kwargs: Any): # noqa: D417
202202
input_fields (list[pa.Field | pa.DataType]): The data types or Fields
203203
of the arguments to ``func``. This list must be of the same length
204204
as the number of arguments.
205-
return_field (_R): The field of the return value from the function.
205+
return_field (pa.DataType | pa.Field): The field of the return value
206+
from the function.
206207
volatility (Volatility | str): See `Volatility` for allowed values.
207208
name (Optional[str]): A descriptive name for the function.
208209

0 commit comments

Comments
 (0)