-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
api: firestoreIssues related to the googleapis/python-firestore API.Issues related to the googleapis/python-firestore API.
Description
This issue was introduced with the changes in 2.17.0. It exists for each of the pyright version I tested at random.
It is only a type issue -- the code behaves as expected.
Environment details
- OS type and version: MacOS
- Python version:
python --version3.11.7 - pip version:
pip --versionpoetry google-cloud-firestoreversion:pip show google-cloud-firestore2.17.0pyrightversion: 1.1.375
Steps to reproduce
- Setup environment as above
- Run pyright
Code example
client = firestore_v1.Client()
def example():
collection = client.collection("foo")
docs = collection.stream()
for doc in docs:
print(doc)
Error message
eample.py
example.py:7:20 - error: "StreamGenerator" is not iterable
"__next__" method not defined on type "DocumentSnapshot" (reportGeneralTypeIssues)
Metadata
Metadata
Assignees
Labels
api: firestoreIssues related to the googleapis/python-firestore API.Issues related to the googleapis/python-firestore API.