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

   ### Problem Description
   From python 3.12 and onward or 3.13 according to the references 
[1](https://bugs.python.org/issue35089), 
[2](https://docs.python.org/3/library/typing.html#typing.IO) the typing.io 
namespace will be removed.
   
   ```
   /python/3.11.1/lib/python3.11/site-packages/pyspark/broadcast.py:38: 
DeprecationWarning: typing.io is deprecated, import directly from typing 
instead. typing.io will be removed in Python 3.12.
       from typing.io import BinaryIO  # type: ignore[import]
   ```
   
   ### What changes were proposed in this pull request?
   I am fixing the issue with the usage of typing.io
   
   
   ### Why are the changes needed?
   Because typing.io namespace will be removed 
[1](https://bugs.python.org/issue35089), 
[2](https://docs.python.org/3/library/typing.html#typing.IO)
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   By running the tests: 
https://github.com/aimtsou/spark/actions/runs/4718557460
   
   ### Jira ticket
   https://issues.apache.org/jira/browse/SPARK-43160
   


-- 
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