Skip to content

Commit 80c0968

Browse files
authored
Light edit pass for style and link fixing. (#158)
1 parent 0e925e1 commit 80c0968

11 files changed

+24
-24
lines changed

src/firebase_functions/alerts_fn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AlertEvent(_CloudEvent[T]):
4646
app_id: str | None
4747
"""
4848
The Firebase App ID that's associated with the alert. This is optional,
49-
and only present when the alert is targeting at a specific Firebase App.
49+
and only present when the alert is targeting a specific Firebase App.
5050
"""
5151

5252

@@ -66,7 +66,7 @@ def on_alert_published(
6666
**kwargs
6767
) -> _typing.Callable[[OnAlertPublishedCallable], OnAlertPublishedCallable]:
6868
"""
69-
Event handler which triggers when a Firebase Alerts event is published.
69+
Event handler that triggers when a Firebase Alerts event is published.
7070
7171
Example:
7272

src/firebase_functions/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class CloudEvent(_typing.Generic[T]):
2626
"""
2727
A CloudEvent is the base of a cross-platform format for encoding a serverless event.
28-
More information can be found at https://github.com/cloudevents/spec
28+
More information can be found at https://github.com/cloudevents/spec.
2929
"""
3030

3131
specversion: str

src/firebase_functions/db_fn.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Event(_core.CloudEvent[T]):
6161

6262
params: dict[str, str]
6363
"""
64-
An dict containing the values of the path patterns.
64+
A dict containing the values of the path patterns.
6565
Only named capture groups are populated - {key}, {key=*}, {key=**}
6666
"""
6767

@@ -125,7 +125,7 @@ def _db_endpoint_handler(
125125
@_util.copy_func_kwargs(DatabaseOptions)
126126
def on_value_written(**kwargs) -> _typing.Callable[[_C1], _C1]:
127127
"""
128-
Event handler which triggers when data is created, updated, or deleted in Realtime Database.
128+
Event handler that triggers when data is created, updated, or deleted in Realtime Database.
129129
130130
Example:
131131
@@ -175,7 +175,7 @@ def on_value_written_wrapped(raw: _ce.CloudEvent):
175175
@_util.copy_func_kwargs(DatabaseOptions)
176176
def on_value_updated(**kwargs) -> _typing.Callable[[_C1], _C1]:
177177
"""
178-
Event handler which triggers when data is updated in Realtime Database.
178+
Event handler that triggers when data is updated in Realtime Database.
179179
180180
Example:
181181
@@ -225,7 +225,7 @@ def on_value_updated_wrapped(raw: _ce.CloudEvent):
225225
@_util.copy_func_kwargs(DatabaseOptions)
226226
def on_value_created(**kwargs) -> _typing.Callable[[_C2], _C2]:
227227
"""
228-
Event handler which triggers when data is created in Realtime Database.
228+
Event handler that triggers when data is created in Realtime Database.
229229
230230
Example:
231231
@@ -275,7 +275,7 @@ def on_value_created_wrapped(raw: _ce.CloudEvent):
275275
@_util.copy_func_kwargs(DatabaseOptions)
276276
def on_value_deleted(**kwargs) -> _typing.Callable[[_C2], _C2]:
277277
"""
278-
Event handler which triggers when data is deleted in Realtime Database.
278+
Event handler that triggers when data is deleted in Realtime Database.
279279
280280
Example:
281281

src/firebase_functions/https_fn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ class FunctionsErrorCode(str, _enum.Enum):
119119

120120
INTERNAL = "internal"
121121
"""
122-
Internal errors. Means some invariants expected by
122+
Internal errors. Means some invariants expected by the
123123
underlying system have been broken. If you see one of these errors,
124-
something is very broken.
124+
something is severely broken.
125125
"""
126126

127127
UNAVAILABLE = "unavailable"

src/firebase_functions/identity_fn.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AuthUserInfo:
3636
"""The user identifier for the linked provider."""
3737

3838
provider_id: str
39-
"""The linked provider ID (e.g., "google.com" for the Google provider)."""
39+
"""The linked provider ID (such as "google.com" for the Google provider)."""
4040

4141
display_name: str | None = None
4242
"""The display name for the linked provider."""
@@ -110,7 +110,7 @@ class AuthMultiFactorSettings:
110110
@_dataclasses.dataclass(frozen=True)
111111
class AuthUserRecord:
112112
"""
113-
The UserRecord passed to auth blocking Cloud Functions from the identity platform.
113+
The UserRecord passed to auth blocking functions from the identity platform.
114114
"""
115115

116116
uid: str
@@ -155,7 +155,7 @@ class AuthUserRecord:
155155

156156
provider_data: list[AuthUserInfo]
157157
"""
158-
An array of providers (e.g., Google, Facebook) linked to the user.
158+
An array of providers (such as Google or Facebook) linked to the user.
159159
"""
160160

161161
password_hash: str | None
@@ -243,7 +243,7 @@ class AuthBlockingEvent:
243243

244244
data: AuthUserRecord
245245
"""
246-
The UserRecord passed to auth blocking Cloud Functions from the identity platform.
246+
The UserRecord passed to auth blocking functions from the identity platform.
247247
"""
248248

249249
locale: str | None

src/firebase_functions/logger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class LogSeverity(str, _enum.Enum):
1313
"""
1414
`LogSeverity` indicates the detailed severity of the log entry. See
15-
[LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity).
15+
`LogSeverity <https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity>`_.
1616
"""
1717

1818
DEBUG = "DEBUG"
@@ -28,7 +28,7 @@ class LogSeverity(str, _enum.Enum):
2828
class LogEntry(_typing.TypedDict):
2929
"""
3030
`LogEntry` represents a log entry.
31-
See [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).
31+
See `LogEntry <https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry>`_.
3232
"""
3333

3434
severity: _typing_extensions.Required[LogSeverity]

src/firebase_functions/params.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ class TextInput:
144144
"""
145145
Specifies that a Param's value should be determined by prompting the user
146146
to type it in interactively at deploy-time. Input that does not match the provided
147-
validation_regex, if present, will be retried.
147+
validation_regex, if present, is retried.
148148
"""
149149

150150
example: str | None = None
151151
"""
152-
An example of the input required that will be displayed alongside the input prompt.
152+
An example of the input required that is displayed alongside the input prompt.
153153
"""
154154

155155
validation_regex: str | None = None
156156
"""
157157
Validation regex for the input.
158-
Input that does not match this regex, if present, will be retried.
158+
Input that does not match this regex, if present, is retried.
159159
"""
160160

161161
validation_error_message: str | None = None

src/firebase_functions/pubsub_fn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _message_handler(
157157
@_util.copy_func_kwargs(PubSubOptions)
158158
def on_message_published(**kwargs) -> _typing.Callable[[_C1], _C1]:
159159
"""
160-
Event handler which triggers on a message being published to a Pub/Sub topic.
160+
Event handler that triggers on a message being published to a Pub/Sub topic.
161161
162162
Example:
163163

src/firebase_functions/remote_config_fn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ class ConfigUpdateData:
141141

142142
rollback_source: int | None = None
143143
"""
144-
Only present if this version is the result of a rollback, and will be
145-
the version number of the Remote Config template that was rolled-back to.
144+
Only present if this version is the result of a rollback, and is
145+
the version number of the Remote Config template that was rolled back to.
146146
"""
147147

148148

src/firebase_functions/storage_fn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
"""
15-
Cloud functions to handle events from Google Cloud Storage.
15+
Functions to handle events from Google Cloud Storage.
1616
"""
1717
# pylint: disable=protected-access
1818
import dataclasses as _dataclasses

src/firebase_functions/tasks_fn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
"""Cloud functions to handle Tasks enqueued with Google Cloud Tasks."""
14+
"""Functions to handle Tasks enqueued with Google Cloud Tasks."""
1515

1616
# pylint: disable=protected-access
1717
import typing as _typing

0 commit comments

Comments
 (0)