Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/datafusion/user_defined.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -33,7 +33,7 @@
if TYPE_CHECKING:
from _typeshed import CapsuleType as _PyCapsule

_R = TypeVar("_R", bound=pa.DataType)
_R = TypeVar("_R", bound=pa.Array)
from collections.abc import Callable, Sequence


Expand DownExpand Up@@ -125,7 +125,7 @@ def __init__(
name: str,
func: Callable[..., _R],
input_fields: list[pa.Field],
return_field: _R,
return_field: pa.Field,
volatility: Volatility | str,
) -> None:
"""Instantiate a scalar user-defined function (UDF).
Expand DownExpand Up@@ -264,7 +264,7 @@ def _function(

def _decorator(
input_fields: Sequence[pa.DataType | pa.Field] | pa.DataType | pa.Field,
return_field: _R,
return_field: pa.DataType | pa.Field,
volatility: Volatility | str,
name: str | None = None,
) -> Callable:
Expand Down
Loading