Skip to content

[SPARK-55355][PYTHON] Upgrade mypy version to the latest#54132

Closed
gaogaotiantian wants to merge 11 commits intoapache:masterfrom
gaogaotiantian:upgrade-mypy
Closed

[SPARK-55355][PYTHON] Upgrade mypy version to the latest#54132
gaogaotiantian wants to merge 11 commits intoapache:masterfrom
gaogaotiantian:upgrade-mypy

Conversation

@gaogaotiantian
Copy link
Copy Markdown
Contributor

@gaogaotiantian gaogaotiantian commented Feb 4, 2026

What changes were proposed in this pull request?

Upgrade mypy version to 1.19.1. Fix all the type hint errors after version upgrade.

Why are the changes needed?

mypy version is out of date. The latest mypy infers type better (so we removed a lot of type ignores). We should try to keep mypy version as new as possible. We will come up with a plan to upgrade it without too much pain.

Does this PR introduce any user-facing change?

It should not.

How was this patch tested?

CI.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 4, 2026

JIRA Issue Information

=== Sub-task SPARK-55355 ===
Summary: Upgrade mypy version to the latest
Assignee: None
Status: Open
Affected: ["4.2.0"]


This comment was automatically generated by GitHub Actions

Copy link
Copy Markdown
Contributor

@allisonwang-db allisonwang-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we specify which mypy version this PR upgrades to?

@gaogaotiantian
Copy link
Copy Markdown
Contributor Author

Can we specify which mypy version this PR upgrades to?

Updated in description. Not sure if I have access to the title.

@HyukjinKwon
Copy link
Copy Markdown
Member

Merged to master.

@gaogaotiantian gaogaotiantian deleted the upgrade-mypy branch February 10, 2026 21:58
rpnkv pushed a commit to rpnkv/spark that referenced this pull request Feb 18, 2026
### What changes were proposed in this pull request?

Upgrade mypy version to 1.19.1. Fix all the type hint errors after version upgrade.

### Why are the changes needed?

mypy version is out of date. The latest mypy infers type better (so we removed a lot of type ignores). We should try to keep mypy version as new as possible. We will come up with a plan to upgrade it without too much pain.

### Does this PR introduce _any_ user-facing change?

It should not.

### How was this patch tested?

CI.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#54132 from gaogaotiantian/upgrade-mypy.

Authored-by: Tian Gao <[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.

3 participants