Skip to content

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 <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
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