Skip to content

Commit 59614fd

Browse files
egilmorezrussellwheatley
authored andcommitted
Addings some more style and format fixes to most-viewed pages. (#120)
Co-authored-by: Russell Wheatley <[email protected]>
1 parent eb50d69 commit 59614fd

File tree

4 files changed

+75
-75
lines changed

4 files changed

+75
-75
lines changed

src/firebase_functions/firestore_fn.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
@_dataclass.dataclass(frozen=True)
4343
class Event(_core.CloudEvent[_core.T]):
4444
"""
45-
A CloudEvent that contains a DocumentSnapshot or a Change<DocumentSnapshot>.
45+
A CloudEvent that contains a ``DocumentSnapshot`` or a ``Change<DocumentSnapshot>``.
4646
"""
4747

4848
location: str
4949
"""
50-
The location of the database
50+
The location of the database.
5151
"""
5252

5353
project: str
@@ -184,7 +184,7 @@ def _firestore_endpoint_handler(
184184
@_util.copy_func_kwargs(FirestoreOptions)
185185
def on_document_written(**kwargs) -> _typing.Callable[[_C1], _C1]:
186186
"""
187-
Event handler which triggers when a document is created, updated, or deleted in Firestore.
187+
Event handler that triggers when a document is created, updated, or deleted in Firestore.
188188
189189
Example:
190190
@@ -199,7 +199,7 @@ def example(event: Event[Change[DocumentSnapshot]]) -> None:
199199
:rtype: :exc:`typing.Callable`
200200
\\[ \\[ :exc:`firebase_functions.firestore_fn.Event` \\[
201201
:exc:`firebase_functions.db.Change` \\] \\], `None` \\]
202-
A function that takes a Firestore Event and returns None.
202+
A function that takes a Firestore event and returns ``None``.
203203
"""
204204
options = FirestoreOptions(**kwargs)
205205

@@ -232,7 +232,7 @@ def on_document_written_wrapped(raw: _ce.CloudEvent):
232232
@_util.copy_func_kwargs(FirestoreOptions)
233233
def on_document_updated(**kwargs) -> _typing.Callable[[_C1], _C1]:
234234
"""
235-
Event handler which triggers when a document is updated in Firestore.
235+
Event handler that triggers when a document is updated in Firestore.
236236
237237
Example:
238238
@@ -247,7 +247,7 @@ def example(event: Event[Change[DocumentSnapshot]]) -> None:
247247
:rtype: :exc:`typing.Callable`
248248
\\[ \\[ :exc:`firebase_functions.firestore_fn.Event` \\[
249249
:exc:`firebase_functions.db.Change` \\] \\], `None` \\]
250-
A function that takes a Firestore Event and returns None.
250+
A function that takes a Firestore event and returns ``None``.
251251
"""
252252
options = FirestoreOptions(**kwargs)
253253

@@ -280,7 +280,7 @@ def on_document_updated_wrapped(raw: _ce.CloudEvent):
280280
@_util.copy_func_kwargs(FirestoreOptions)
281281
def on_document_created(**kwargs) -> _typing.Callable[[_C2], _C2]:
282282
"""
283-
Event handler which triggers when a document is created in Firestore.
283+
Event handler that triggers when a document is created in Firestore.
284284
285285
Example:
286286
@@ -295,7 +295,7 @@ def example(event: Event[DocumentSnapshot]):
295295
:rtype: :exc:`typing.Callable`
296296
\\[ \\[ :exc:`firebase_functions.firestore_fn.Event` \\[
297297
:exc:`object` \\] \\], `None` \\]
298-
A function that takes a Firestore Event and returns None.
298+
A function that takes a Firestore event and returns ``None``.
299299
"""
300300
options = FirestoreOptions(**kwargs)
301301

@@ -328,7 +328,7 @@ def on_document_created_wrapped(raw: _ce.CloudEvent):
328328
@_util.copy_func_kwargs(FirestoreOptions)
329329
def on_document_deleted(**kwargs) -> _typing.Callable[[_C2], _C2]:
330330
"""
331-
Event handler which triggers when a document is deleted in Firestore.
331+
Event handler that triggers when a document is deleted in Firestore.
332332
333333
Example:
334334
@@ -343,7 +343,7 @@ def example(event: Event[DocumentSnapshot]) -> None:
343343
:rtype: :exc:`typing.Callable`
344344
\\[ \\[ :exc:`firebase_functions.firestore_fn.Event` \\[
345345
:exc:`object` \\] \\], `None` \\]
346-
A function that takes a Firestore Event and returns None.
346+
A function that takes a Firestore event and returns ``None``.
347347
"""
348348
options = FirestoreOptions(**kwargs)
349349

0 commit comments

Comments
 (0)