@@ -624,7 +624,7 @@ def __call__(self, *args: Expr) -> Expr:
624
624
@overload
625
625
@staticmethod
626
626
def udwf (
627
- input_type : pa .DataType | list [pa .DataType ],
627
+ input_types : pa .DataType | list [pa .DataType ],
628
628
return_type : pa .DataType ,
629
629
volatility : Volatility | str ,
630
630
name : Optional [str ] = None ,
@@ -634,7 +634,7 @@ def udwf(
634
634
@staticmethod
635
635
def udwf (
636
636
func : Callable [[], WindowEvaluator ],
637
- input_type : pa .DataType | list [pa .DataType ],
637
+ input_types : pa .DataType | list [pa .DataType ],
638
638
return_type : pa .DataType ,
639
639
volatility : Volatility | str ,
640
640
name : Optional [str ] = None ,
@@ -702,13 +702,13 @@ def biased_numbers() -> BiasedNumbers:
702
702
def _create_window_udf (
703
703
func : Callable [[], WindowEvaluator ],
704
704
input_types : pa .DataType | list [pa .DataType ],
705
- return_type : _R ,
705
+ return_type : pa . DataType ,
706
706
volatility : Volatility | str ,
707
707
name : Optional [str ] = None ,
708
708
) -> WindowUDF :
709
709
"""Create a WindowUDF instance from function arguments."""
710
710
if not callable (func ):
711
- msg = "`func` argument must be callable"
711
+ msg = "`func` must be callable. "
712
712
raise TypeError (msg )
713
713
if not isinstance (func (), WindowEvaluator ):
714
714
msg = "`func` must implement the abstract base class WindowEvaluator"
0 commit comments