Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR][PYTHON] Remove deprecated use of typing.io #41084

Closed
wants to merge 1 commit into from

Conversation

hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented May 7, 2023

What changes were proposed in this pull request?

Use typing.BinaryIO instead of typing.io.BinaryIO. The latter is deprecated and had questionable type checker support, see python/cpython#92871

Why are the changes needed?

So Spark is unaffected when typing.io is removed in Python 3.13

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing unit tests / every import of this module

@hauntsaninja hauntsaninja changed the title Remove deprecated use of typing.io [PYTHON] Remove deprecated use of typing.io May 7, 2023
@hauntsaninja hauntsaninja reopened this May 7, 2023
@HyukjinKwon
Copy link
Member

@hauntsaninja hauntsaninja changed the title [PYTHON] Remove deprecated use of typing.io [MINOR][PYTHON] Remove deprecated use of typing.io May 8, 2023
@hauntsaninja
Copy link
Contributor Author

Thanks, I updated the PR to keep the template. Do I need to have a JIRA? The issue here is trivial / I don't have an account / my previous PR to Spark didn't need a JIRA (#29264)

@HyukjinKwon
Copy link
Member

Merged to master.

LuciferYang pushed a commit to LuciferYang/spark that referenced this pull request May 10, 2023
### What changes were proposed in this pull request?
Use `typing.BinaryIO` instead of `typing.io.BinaryIO`. The latter is deprecated and had questionable type checker support, see python/cpython#92871

### Why are the changes needed?
So Spark is unaffected when `typing.io` is removed in Python 3.13

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
Existing unit tests / every import of this module

Closes apache#41084 from hauntsaninja/patch-1.

Authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants