Skip to content

Commit

Permalink
transaction return type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Linchin committed Aug 7, 2024
1 parent bb60ce0 commit 6f86854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/cloud/firestore_v1/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
if TYPE_CHECKING: # pragma: NO COVER
from google.cloud.firestore_v1.base_document import DocumentSnapshot
from google.cloud.firestore_v1.query_profile import ExplainOptions
from google.cloud.firestore_v1.stream_generator import StreamGenerator
from google.cloud.firestore_v1.types import CommitResponse


Expand Down Expand Up @@ -176,7 +177,7 @@ def get(
timeout: float = None,
*,
explain_options: Optional[ExplainOptions] = None,
) -> Generator[DocumentSnapshot, Any, None]:
) -> StreamGenerator[DocumentSnapshot]:
"""Retrieve a document or a query result from the database.
Args:
Expand Down

0 comments on commit 6f86854

Please sign in to comment.