Commit 7eaef92
authored
fix: tighten scalar UDF return type hints (#1642)
This PR tightens the scalar UDF annotations in python/datafusion/user_defined.py:
the callable return type is bounded to pa.Array
the scalar UDF constructor accepts return_field: pa.Field
the decorator form accepts return_field: pa.DataType | pa.Field1 parent 3d9583c commit 7eaef92
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
0 commit comments