types-protobuf
overshadows google-cloud
packages
#1423
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
Environment details
google-cloud-bigquery
version: 3.3.6Steps to reproduce
Hi
The issue here is that the
types-protobuf
pakcage overshadows anything thatgoogle-cloud-*
tried to export (by that I mean any google api package likegoogle-cloud-bigquery
orgoogle-cloud-storage
) which results in IDEs, language servers and all types of linters and type checkers failing even tho the code runs succesfully.The issue is very simple to reproduce, simply install a package like
google-cloud-bigquery
and try to use it in your code.When you open your IDE it will look something like this:
Tools like
mypy
orpylint
will also not have a problem with that.However if you install the
types-protobuf
package, which will be installed if you installtypes-all
(that package is frequently installed in order for mypy to have type resolution for as many things as possible)m you will start getting errors like this (no matter the IDE):Even tho the code will run succesfully.
I am not sure if this is the fault of the
types-protobuf
package or maybe the google packages export something in a bad manner. I am simply reporting this issue, I am making a twin report intypes-protobuf
repo (python/typeshed#9267).The text was updated successfully, but these errors were encountered: