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
eample.py
example.py:7:20 - error: "StreamGenerator" is not iterable
"__next__" method not defined on type "DocumentSnapshot" (reportGeneralTypeIssues)
The text was updated successfully, but these errors were encountered:
Thanks for letting us know. We're aware that the type annotations for this repo are currently broken. But @Linchin is working on some changes related to the StreamGenerator, so maybe this can be addressed there
The type annotation changes in #938 should be able to resolve this error, but I don't think this single PR will clean up all existing type annotation errors.
It can be fixed by adding type annotation to the init function of StreamGenerator here. I'm still not 100% sure, but it feels like pyright is trying to infer the parameter type, but somehow wasn't correct (probably due to other type annotation errors.)
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
python --version
3.11.7pip --version
poetrygoogle-cloud-firestore
version:pip show google-cloud-firestore
2.17.0pyright
version: 1.1.375Steps to reproduce
Code example
Error message
The text was updated successfully, but these errors were encountered: