mypy type error for pager #991
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please be sure to include as much information as possible:
Environment details
python --version
3.9.1pip --version
21.0.1google-cloud-datacatalog
version:pip show google-cloud-datacatalog
3.2.0Steps to reproduce
DataCatlogClient#list_tags
in for-loopCode example
Error
I suspect this is due to the return type of
ListTagsPager#__iter__
is annotated asIterable
rather thanIterator
, but not sure (according to the Python protocol,Iterable
only offers__iter__
method, whileIterator
offers__next__
).https://github.com/googleapis/python-datacatalog/blob/936800c92a348b8ce438c4b608f17fe6d9f926a1/google/cloud/datacatalog_v1beta1/services/data_catalog/pagers.py#L470
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: