Skip to content

Types for base_query.py #900

Open
@rgant

Description

@rgant

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: firestoreIssues related to the googleapis/python-firestore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions