You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5febeb3
Browse filesBrowse the repository at this point in the historyBrowse files
ci: add ty type checker and fix existing type errors (#1786)
Add ty (pinned to 0.0.84, since it is pre-1.0) to the dev dependency
group, configure it in pyproject.toml to check python/datafusion, and
run it in the lint-python CI job and as a local pre-commit hook.
datafusion._internal ships no stubs, and pandas/polars are optional
TYPE_CHECKING-only imports, so they are allowed to stay unresolved.
Fix the diagnostics ty reported:
- Make the internal udtf decorator helper require `name`, matching the
public overloads. `@udtf()` previously passed None into Rust and
failed with "'None' is not an instance of 'str'".
- Give AggregateUDF.__init__ defaults matching its FFI overload, and add
the same FFI overload to ScalarUDF and WindowUDF.
- Add None/non-None overloads to expr_list_to_raw_expr_list and
sort_list_to_raw_sort_list so callers that unpack the result type
check.
- Stop rebinding typed *args and parameters to values of other types.
- Import warnings.deprecated behind a sys.version_info check and drop
the unreachable importlib_metadata fallback.
- Fix smaller annotation mismatches (LogicalPlan.__eq__,
spark._coerce_i32, CSV file_compression_type).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments