Skip to content

Commit 9b6e95e

Browse files
committed
Apply suggestions from TW review
1 parent e4550ec commit 9b6e95e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

firebase_admin/_http_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ def apply_auth_headers(
177177
request: httpx.Request,
178178
auth_request: google_auth_requests.Request
179179
) -> None:
180-
"""A helper function to refreshes credentials if needed and mutates the request headers to
181-
contain access token and any other google auth headers."""
180+
"""A helper function that refreshes credentials if needed and mutates the request headers
181+
to contain access token and any other Google Auth headers."""
182182

183183
logger.debug(
184184
'Attempting to apply auth headers. Credential validity before: %s',
@@ -240,7 +240,7 @@ def auth_flow(self, request: httpx.Request) -> Generator[httpx.Request, httpx.Re
240240
class HttpxAsyncClient():
241241
"""Async HTTP client used to make HTTP/2 calls using HTTPX.
242242
243-
HttpxAsyncClient maintains an async HTTPX client, and handles request authentication and retries
243+
HttpxAsyncClient maintains an async HTTPX client, handles request authentication, and retries
244244
if necessary.
245245
"""
246246
def __init__(

firebase_admin/messaging.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def send(message: Message, dry_run: bool = False, app: Optional[App] = None) ->
115115
"""Sends the given message via Firebase Cloud Messaging (FCM).
116116
117117
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
118-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
118+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
119119
120120
Args:
121121
message: An instance of ``messaging.Message``.
@@ -139,7 +139,7 @@ def send_each(
139139
"""Sends each message in the given list via Firebase Cloud Messaging.
140140
141141
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
142-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
142+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
143143
144144
Args:
145145
messages: A list of ``messaging.Message`` instances.
@@ -163,7 +163,7 @@ async def send_each_async(
163163
"""Sends each message in the given list asynchronously via Firebase Cloud Messaging.
164164
165165
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
166-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
166+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
167167
168168
Args:
169169
messages: A list of ``messaging.Message`` instances.
@@ -188,7 +188,7 @@ async def send_each_for_multicast_async(
188188
(FCM).
189189
190190
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
191-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
191+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
192192
193193
Args:
194194
multicast_message: An instance of ``messaging.MulticastMessage``.
@@ -219,7 +219,7 @@ def send_each_for_multicast(multicast_message, dry_run=False, app=None):
219219
"""Sends the given mutlicast message to each token via Firebase Cloud Messaging (FCM).
220220
221221
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
222-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
222+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
223223
224224
Args:
225225
multicast_message: An instance of ``messaging.MulticastMessage``.
@@ -250,7 +250,7 @@ def send_all(messages, dry_run=False, app=None):
250250
"""Sends the given list of messages via Firebase Cloud Messaging as a single batch.
251251
252252
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
253-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
253+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
254254
255255
Args:
256256
messages: A list of ``messaging.Message`` instances.
@@ -273,7 +273,7 @@ def send_multicast(multicast_message, dry_run=False, app=None):
273273
"""Sends the given mutlicast message to all tokens via Firebase Cloud Messaging (FCM).
274274
275275
If the ``dry_run`` mode is enabled, the message will not be actually delivered to the
276-
recipients. Instead FCM performs all the usual validations, and emulates the send operation.
276+
recipients. Instead, FCM performs all the usual validations and emulates the send operation.
277277
278278
Args:
279279
multicast_message: An instance of ``messaging.MulticastMessage``.

0 commit comments

Comments
 (0)