Skip to content

Conversation

@gopidesupavan
Copy link
Member

@gopidesupavan gopidesupavan commented Jul 14, 2025

Looks like mypy is treating modual path storage is not available in google name space, its because the in provider google namespace we have goog.cloud and gcs package also has google.cloud.

Its better to import with full path from google-cloud-storage package.

Updated with alias.

This also helps idea's to discover better, right now idea's showing this storage path not available.

After updating imports tested , nothing breaks.

image

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:logging area:providers provider:google Google (including GCP) related issues labels Jul 14, 2025
@gopidesupavan gopidesupavan changed the title Refactor google.cloud imports to prevent conflicts with local google namespace and resolve mypy errors Refactor google.cloud imports to prevent conflicts with airflow google provider namespace and resolve mypy errors Jul 14, 2025
@gopidesupavan gopidesupavan mentioned this pull request Jul 14, 2025
99 tasks
@gopidesupavan gopidesupavan merged commit 9d944c1 into apache:main Jul 14, 2025
141 of 142 checks passed
@gopidesupavan gopidesupavan deleted the update-imports-gcs branch July 14, 2025 18:16
@potiuk
Copy link
Member

potiuk commented Jul 14, 2025

Nice!

prdai pushed a commit to prdai/airflow that referenced this pull request Jul 15, 2025
…e provider namespace and resolve mypy errors (apache#53338)

* Refactor google.cloud imports to prevent conflicts with local google namespace and resolve mypy errors

* Refactor google.cloud imports to prevent conflicts with local google namespace and resolve mypy errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:logging area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants