GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Iterating StreamGenerator yields Unknown type · Issue #1080 · googleapis/python-firestore

This repository was archived by the owner on Aug 30, 2026. It is now read-only.
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Iterating StreamGenerator yields Unknown type #1080

Copy link
Copy link
Closed
#1148
Closed
Iterating StreamGenerator yields Unknown type#1080
#1148
Copy link
Assignees
daniel-sanche
Labels
api: firestoreIssues related to the googleapis/python-firestore API.

Description

@woo-cie
woo-cie
opened on Sep 9, 2025
Issue body actions

Iterating StreamGenerator in a for loop yields type Unknown.
In the code example, it should yield DocumentSnapshot.

This can be fixed by changing StreamGenerator.__iter__ ’s return type from StreamGenerator to StreamGenerator[T].

python-firestore/google/cloud/firestore_v1/stream_generator.py

Lines 53 to 54 in 4983639

def __iter__(self) -> StreamGenerator:
return self

Environment details

  • OS type and version: Windows 11
  • Python version: 3.9.13
  • pip version: uv-pip 0.6.12
  • google-cloud-firestore version: 2.21.0

Steps to reproduce

  1. Setup environment as above
  2. Check the type shown by the IDE

Code example

db: Client

docs = db.collection("some_table").stream()
for doc in docs:
    pass
Image Image

Activity

  1. product-auto-label
    added
    api: firestoreIssues related to the googleapis/python-firestore API.
    on Sep 9, 2025
  2. blunderbuss-gcf
    assigned
    bhshkh
    on Sep 9, 2025
  3. woo-cie
    changed the title [-]Iterating StreamGenerator yields Unknown[/-] [+]Iterating StreamGenerator yields Unknown type[/+] on Sep 11, 2025
  4. bhshkh
    assigned
    daniel-sanche
    and unassigned
    bhshkh
    on Sep 17, 2025
  5. daniel-sanche commented on Dec 18, 2025

    @daniel-sanche
    daniel-sanche
    on Dec 18, 2025
    Contributor
    More actions

    Thanks, I opened a PR to address this: #1148

    Reacted by Makoto Yamada
  6. daniel-sanche
    added a commit that references this issue on Dec 19, 2025

    fix: stream generator type (#1148)

    165d367
  7. daniel-sanche
    closed this as completedin #1148on Dec 19, 2025
  8. parthea
    added a commit that references this issue on Feb 20, 2026

    fix: stream generator type (#1148)

    66c7028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @daniel-sanche
    daniel-sanche

Labels

api: firestoreIssues related to the googleapis/python-firestore API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.