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

Install typing-extensions v4.10.0 to fix Python test error #2504

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

helenxie-bit
Copy link
Contributor

What this PR does / why we need it:
We need to install typing-extensions v4.10.0 or newer to resolve the following CI error:

from typing_extensions import TypeIs as _TypeIs
E   ImportError: cannot import name 'TypeIs' from 'typing_extensions'

The root cause is that TypeIs was introduced in version 4.10.0 according to the typing-extensions documentation, and torch 2.6.0 requires typing-extensions>=4.10.0,

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2503

Checklist:

  • Docs included if any changes are user facing

Signed-off-by: helenxie-bit <[email protected]>
@helenxie-bit
Copy link
Contributor Author

Please review when you have time 👀 @andreyvelich @shashank-iitbhu

Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

Thank you for this fix @helenxie-bit!
/lgtm
/approve

@andreyvelich
Copy link
Member

/rerun-all

Copy link
Member

@Electronic-Waste Electronic-Waste left a comment

Choose a reason for hiding this comment

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

/lgtm
/rerun-all

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich, Electronic-Waste

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Electronic-Waste
Copy link
Member

/rerun-all

@google-oss-prow google-oss-prow bot merged commit 741238d into kubeflow:master Jan 30, 2025
63 checks passed
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.

ImportError: cannot import name 'TypeIs' from 'typing_extensions'
3 participants