201573 opened a new pull request, #55742:
URL: https://github.com/apache/spark/pull/55742

   ### What changes were proposed in this pull request?
   This PR adds narrow `# type: ignore[attr-defined]` annotations for 
`pyarrow.compute` calls whose symbols are missing from the PyArrow 24.0.0 
stubs: `floor_temporal`, `assume_timezone`, and `local_timestamp`.
   
   ### Why are the changes needed?
   PyArrow 24.0.0 still exposes these compute kernels at runtime, but its type 
stubs do not expose them to mypy. This currently breaks PySpark lint with 
`attr-defined` errors.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   - `PYTHON_EXECUTABLE=/tmp/spark-56765-mypy-venv/bin/python ./dev/lint-python 
--compile`
   - `/tmp/spark-56765-mypy-venv/bin/ruff format --check 
python/pyspark/sql/pandas/types.py python/pyspark/sql/conversion.py`
   - `git diff --check`
   - Targeted mypy with `pyarrow==24.0.0` confirmed these `pyarrow.compute` 
`attr-defined` errors are suppressed.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Generated-by: OpenAI Codex (GPT-5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to