Skip to content

Commit e5a2323

Browse files
committed
fix: formatting
1 parent 3fe71df commit e5a2323

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/firebase_functions/firestore_fn.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ def _firestore_endpoint_handler(
143143
app = get_app()
144144
firestore_client = _firestore_v1.Client(project=app.project_id,
145145
database=event_database)
146-
firestore_ref: DocumentReference = firestore_client.document(
147-
event_document)
146+
firestore_ref: DocumentReference = firestore_client.document(event_document)
148147
value_snapshot: DocumentSnapshot | None = None
149148
old_value_snapshot: DocumentSnapshot | None = None
150149

@@ -273,7 +272,7 @@ def on_document_written_wrapped(raw: _ce.CloudEvent):
273272

274273
@_util.copy_func_kwargs(FirestoreOptions)
275274
def on_document_written_with_auth_context(**kwargs
276-
) -> _typing.Callable[[_C1], _C1]:
275+
) -> _typing.Callable[[_C1], _C1]:
277276
"""
278277
Event handler that triggers when a document is created, updated, or deleted in Firestore.
279278
This trigger will also provide the authentication context of the principal who triggered
@@ -372,7 +371,7 @@ def on_document_updated_wrapped(raw: _ce.CloudEvent):
372371

373372
@_util.copy_func_kwargs(FirestoreOptions)
374373
def on_document_updated_with_auth_context(**kwargs
375-
) -> _typing.Callable[[_C1], _C1]:
374+
) -> _typing.Callable[[_C1], _C1]:
376375
"""
377376
Event handler that triggers when a document is updated in Firestore.
378377
This trigger will also provide the authentication context of the principal who triggered
@@ -471,7 +470,7 @@ def on_document_created_wrapped(raw: _ce.CloudEvent):
471470

472471
@_util.copy_func_kwargs(FirestoreOptions)
473472
def on_document_created_with_auth_context(**kwargs
474-
) -> _typing.Callable[[_C2], _C2]:
473+
) -> _typing.Callable[[_C2], _C2]:
475474
"""
476475
Event handler that triggers when a document is created in Firestore.
477476
This trigger will also provide the authentication context of the principal who triggered
@@ -570,7 +569,7 @@ def on_document_deleted_wrapped(raw: _ce.CloudEvent):
570569

571570
@_util.copy_func_kwargs(FirestoreOptions)
572571
def on_document_deleted_with_auth_context(**kwargs
573-
) -> _typing.Callable[[_C2], _C2]:
572+
) -> _typing.Callable[[_C2], _C2]:
574573
"""
575574
Event handler that triggers when a document is deleted in Firestore.
576575
This trigger will also provide the authentication context of the principal who triggered

0 commit comments

Comments
 (0)