We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Iterating StreamGenerator in a for loop yields type Unknown. In the code example, it should yield DocumentSnapshot.
StreamGenerator
Unknown
DocumentSnapshot
This can be fixed by changing StreamGenerator.__iter__ ’s return type from StreamGenerator to StreamGenerator[T].
StreamGenerator.__iter__
StreamGenerator[T]
python-firestore/google/cloud/firestore_v1/stream_generator.py
Lines 53 to 54 in 4983639
google-cloud-firestore
db: Client docs = db.collection("some_table").stream() for doc in docs: pass
Iterating
StreamGeneratorin a for loop yields typeUnknown.In the code example, it should yield
DocumentSnapshot.This can be fixed by changing
StreamGenerator.__iter__’s return type fromStreamGeneratortoStreamGenerator[T].python-firestore/google/cloud/firestore_v1/stream_generator.py
Lines 53 to 54 in 4983639
Environment details
google-cloud-firestoreversion: 2.21.0Steps to reproduce
Code example