201573 opened a new pull request, #55743: URL: https://github.com/apache/spark/pull/55743
### What changes were proposed in this pull request? This PR removes the obsolete NumPy version guard around `numpy.typing.NDArray` handling in pandas-on-Spark type hints. The current minimum NumPy version is already newer than 1.21, so the branch is always enabled. The associated typedef test now imports `numpy.typing` directly and continues to assert `NDArray[...]` conversion. ### Why are the changes needed? The version check is dead code now that PySpark requires NumPy 1.22 or newer. Removing it simplifies the type hint path without changing behavior. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Verified locally: - `SPARK_HOME=/tmp/spark_codex_56760 ./python/run-tests.py --python-executables python3 --testnames pyspark.pandas.tests.test_typedef` - `SPARK_HOME=/tmp/spark_codex_56760 PYTHON_EXECUTABLE=python3 ./dev/lint-python --compile` - `git diff --check` ### Was this patch authored or co-authored using generative AI tooling? Generated-by: 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]
