Skip to content

Conversation

@soovittt
Copy link
Contributor

Fixes #7886

Summary

Suppresses the FutureWarning from google.api_core._python_version_support that appears when GCP modules are imported. This warning is informational and does not affect functionality.

Changes

  • Added warning filter in sky/adaptors/gcp.py to suppress the FutureWarning about Python 3.10 support ending
  • The filter specifically targets the warning message from google.api_core._python_version_support

…pport

Suppress the FutureWarning from google.api_core._python_version_support
that appears when GCP modules are imported. This warning is informational
and does not affect functionality.

Fixes skypilot-org#7886
Use raw string (r'...') for the regex pattern in warnings.filterwarnings
to follow Python best practices for regex patterns.
Copy link
Collaborator

@aylei aylei left a comment

Choose a reason for hiding this comment

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

Thanks @soovittt ! Could you run ./format.sh to address the lint issue?

Split the message parameter across lines to fix:
- Line too long error (85/80 characters)
- YAPF formatting requirements
@soovittt
Copy link
Contributor Author

@aylei I did format it. Thanks for the review.

Copy link
Collaborator

@aylei aylei left a comment

Choose a reason for hiding this comment

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

Thanks @soovittt !

@aylei aylei merged commit 8b8bcf0 into skypilot-org:master Nov 25, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dependency] GCP package showing warning

2 participants