Skip to content

Incorrect type annotation(s) in AsyncTransaction constructor #537

@anna-hope

Description

@anna-hope

The type annotation for client in AsyncTransaction constructor should be ...async_client.AsyncClient, not ...client.Client:

client (:class:`~google.cloud.firestore_v1.client.Client`):

I can submit a PR to fix this.

I am not sure if the annotation for _commit_with_retry

client: Client, write_pbs: list, transaction_id: bytes
should also refer to AsyncClient. If it should, I can fix that too.

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the googleapis/python-firestore API.priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions