Skip to content

Commit 043d9ef

Browse files
authored
fix: Add missing DocumentReference return value to .document (#1053)
1 parent bb482e9 commit 043d9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/firestore_v1/base_collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _aggregation_query(self) -> BaseAggregationQuery:
128128
def _vector_query(self) -> BaseVectorQuery:
129129
raise NotImplementedError
130130

131-
def document(self, document_id: Optional[str] = None):
131+
def document(self, document_id: Optional[str] = None) -> DocumentReference:
132132
"""Create a sub-document underneath the current collection.
133133
134134
Args:

0 commit comments

Comments
 (0)