Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types for base_query.py #900

Open
rgant opened this issue Apr 3, 2024 · 0 comments
Open

Types for base_query.py #900

rgant opened this issue Apr 3, 2024 · 0 comments
Labels
api: firestore Issues related to the googleapis/python-firestore API.

Comments

@rgant
Copy link

rgant commented Apr 3, 2024

I cannot use FieldFilter in my projects because it is not typed.

        # It appears that filtering on document ID will not work for collect_group queries.
        # mypy error - Call to untyped function "FieldFilter" in typed context
        # Both FieldFilter & FieldPath have this issue sadly
        .where(filter=FieldFilter(FieldPath.document_id(), '==', program_id)),  # type: ignore[no-untyped-call]

Could the google.cloud.firestore_v1.base_query module be typed?

@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/python-firestore API.
Projects
None yet
Development

No branches or pull requests

1 participant