Skip to content

Commit 1ea75fd

Browse files
committed
Fix ruff errors
1 parent f068caa commit 1ea75fd

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

python/datafusion/user_defined.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ def udf(*args: Any, **kwargs: Any): # noqa: D417
276276
This list must be of the same length as the number of arguments. Pass
277277
:class:`pyarrow.Field` instances when you need to declare extension
278278
metadata for an argument.
279-
return_type (pa.DataType | pa.Field): The return type of the function. Supply
280-
a :class:`pyarrow.Field` when the result should expose extension metadata
281-
to downstream consumers.
279+
return_type (pa.DataType | pa.Field): The return type of the function.
280+
Supply a :class:`pyarrow.Field` when the result should expose
281+
extension metadata to downstream consumers.
282282
volatility (Volatility | str): See `Volatility` for allowed values.
283283
name (Optional[str]): A descriptive name for the function.
284284
@@ -290,8 +290,13 @@ def udf(*args: Any, **kwargs: Any): # noqa: D417
290290
291291
def double_func(x):
292292
return x * 2
293-
double_udf = udf(double_func, [pa.int32()], pa.int32(),
294-
"volatile", "double_it")
293+
double_udf = udf(
294+
double_func,
295+
[pa.int32()],
296+
pa.int32(),
297+
"volatile",
298+
"double_it",
299+
)
295300
296301
Example: Using ``udf`` as a decorator::
297302

0 commit comments

Comments
 (0)