You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue where using google-cloud-aiplatform andgoogle-cloud-bigquery in the same project causes google.cloud.bigquery imports to fail mypy.
This is similar to #10360 but caused by a different package.
script_one.py:6: error: Module "google.cloud" has no attribute "bigquery"
script_two.py:6: error: Module "google.cloud" has no attribute "bigquery"
Changing the import from from google.cloud import bigquery to import google.cloud.bigquery as bigquery as proposed in #10360 (comment) in any one of script_one.py or script_two.py fixes the issue for both of them.
Also, removing all google-cloud-aiplatform imports form script_three.py fixes the issue.
Expected Behavior
I would not expect the usage of one package (google-cloud-aiplatform) to influence the mypy checks of another (google-cloud-bigquery).
Your Environment
Mypy version used: 0.910
Mypy command-line flags: mypy
Mypy configuration options from mypy.ini (and other config files): None
Python version used: 3.8.5
Operating system and version: CentOS 7.6
The text was updated successfully, but these errors were encountered:
Bug Report
I'm having an issue where using
google-cloud-aiplatform
andgoogle-cloud-bigquery
in the same project causesgoogle.cloud.bigquery
imports to fail mypy.This is similar to #10360 but caused by a different package.
To Reproduce
With three .py files with the following imports:
script_one.py
:script_two.py
:script_three.py
:as well as the
requirements.txt
fileActual Behavior
I get the following errors when running mypy:
Changing the import from
from google.cloud import bigquery
toimport google.cloud.bigquery as bigquery
as proposed in #10360 (comment) in any one ofscript_one.py
orscript_two.py
fixes the issue for both of them.Also, removing all
google-cloud-aiplatform
imports formscript_three.py
fixes the issue.Expected Behavior
I would not expect the usage of one package (
google-cloud-aiplatform
) to influence the mypy checks of another (google-cloud-bigquery
).Your Environment
0.910
mypy
mypy.ini
(and other config files): None3.8.5
The text was updated successfully, but these errors were encountered: