Skip to content

Commit 84dc281

Browse files
committed
RR feedback
1 parent 3cfd8ee commit 84dc281

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

source/data-formats/custom-types.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ BSON library's ``Decimal128`` type is distinct
3030
from Python's built-in ``Decimal`` type. Attempting
3131
to save an instance of ``Decimal`` with {+driver-short+} results in an
3232
``InvalidDocument`` exception, as shown in the following code example. Select the
33-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
33+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
3434

3535
.. tabs::
3636

@@ -183,7 +183,7 @@ object as a keyword argument. Pass your ``CodecOptions`` object to the
183183
collection = db.get_collection("test", codec_options=codec_options)
184184

185185
You can then encode and decode instances of the ``Decimal`` class. Select the
186-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
186+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
187187

188188
.. tabs::
189189

@@ -232,7 +232,7 @@ create a new collection object without the customized codec options, then use it
232232
to retrieve the document containing the custom type. The following example shows
233233
that {+driver-short+} stores an instance of the ``Decimal`` class as a ``Decimal128``
234234
value. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the
235-
corresponding code.
235+
corresponding code:
236236

237237
.. tabs::
238238

@@ -289,7 +289,7 @@ return its value as an integer:
289289

290290
If you try to save an instance of the ``DecimalInt`` class without first registering a type
291291
codec for it, {+driver-short+} raises an error. Select the
292-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
292+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
293293

294294
.. tabs::
295295

@@ -345,7 +345,7 @@ as shown in the following example:
345345

346346
You can then add the sublcass's type codec to the type registry and encode instances
347347
of the custom type. Select the
348-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
348+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
349349

350350
.. tabs::
351351

@@ -443,8 +443,8 @@ The following code example shows this process:
443443
collection = db.get_collection("test", codec_options=codec_options)
444444

445445
You can then use this reference to a collection to store instances of the ``Decimal``
446-
class. Select the
447-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
446+
class. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the
447+
corresponding code:
448448

449449
.. tabs::
450450

@@ -547,7 +547,7 @@ back into Python objects:
547547

548548
You can then add the ``PickledBinaryDecoder`` to the codec options for a collection
549549
and use it to encode and decode your custom types. Select the
550-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
550+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
551551

552552
.. tabs::
553553

source/data-formats/dates-and-times.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ By default, {+driver-short+} retrieves UTC ``datetime`` values with no supplemen
125125
information. The following code example retrieves the sample document
126126
and prints the ``datetime`` value. The printed value is identical to
127127
the one in the sample document. Select the :guilabel:`Synchronous` or
128-
:guilabel:`Asynchronous` tab to see the corresponding code.
128+
:guilabel:`Asynchronous` tab to see the corresponding code:
129129

130130
.. tabs::
131131

@@ -184,7 +184,7 @@ Then, pass the ``CodecOptions`` object to the ``get_collection()`` method.
184184

185185
The following code example retrieves the ``datetime`` value from the sample document as
186186
an aware ``datetime``. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab
187-
to see the corresponding code.
187+
to see the corresponding code:
188188

189189
.. tabs::
190190

@@ -258,7 +258,7 @@ Then, create a ``CodecOptions`` object and pass the following arguments to the c
258258
The following code example retrieves the sample document,
259259
but uses the ``tz_aware`` and ``tzinfo`` arguments to automatically localize
260260
the ``datetime`` value to the ``"US/Pacific"`` time zone. Select the :guilabel:`Synchronous`
261-
or :guilabel:`Asynchronous` tab to see the corresponding code.
261+
or :guilabel:`Asynchronous` tab to see the corresponding code:
262262

263263
.. tabs::
264264

@@ -343,7 +343,7 @@ The following code example inserts a document containing a ``datetime`` value lo
343343
to the ``"US/Pacific"`` time zone. {+driver-short+} uses the attached time zone to convert
344344
the local time to UTC. When the document is retrieved from MongoDB, the ``datetime`` value
345345
is in UTC. Select the :guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the
346-
corresponding code.
346+
corresponding code:
347347

348348
.. tabs::
349349

@@ -601,7 +601,7 @@ attempt to decode the value as a ``datetime.datetime``, allowing
601601
this behavior to instead return ``~bson.datetime_ms.DatetimeMS`` when
602602
representations are out-of-range, while returning ``~datetime.datetime``
603603
objects as before. Select the :guilabel:`Synchronous`
604-
or :guilabel:`Asynchronous` tab to see the corresponding code.
604+
or :guilabel:`Asynchronous` tab to see the corresponding code:
605605

606606
.. tabs::
607607

@@ -664,7 +664,7 @@ class.
664664
Another option that does not involve setting ``datetime_conversion`` is to
665665
filter out document values outside of the range supported by
666666
``~datetime.datetime``. Select the
667-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
667+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
668668

669669
.. tabs::
670670

@@ -687,7 +687,7 @@ filter out document values outside of the range supported by
687687
cur = await coll.find({'dt': {'$gte': datetime.min, '$lte': datetime.max}})
688688

689689
If you don't need the value of ``datetime``, you can filter out just that field. Select the
690-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
690+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
691691

692692
.. tabs::
693693

source/data-formats/time-series.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Example
8484

8585
The following example creates a time series collection named ``october2024`` with the
8686
``timeField`` option set to ``"timestamp"``. Select the :guilabel:`Synchronous`
87-
or :guilabel:`Asynchronous` tab to see the corresponding code.
87+
or :guilabel:`Asynchronous` tab to see the corresponding code:
8888

8989
.. tabs::
9090

@@ -117,7 +117,7 @@ or :guilabel:`Asynchronous` tab to see the corresponding code.
117117

118118
To check if you successfully created the collection, you can get a list of all
119119
collections in your database and filter by collection name. Select the
120-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
120+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
121121

122122
.. tabs::
123123

@@ -205,7 +205,7 @@ document contains the following fields:
205205
- ``timestamp``, which stores the measurement timestamp
206206

207207
Select the
208-
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code.
208+
:guilabel:`Synchronous` or :guilabel:`Asynchronous` tab to see the corresponding code:
209209

210210
.. tabs::
211211

0 commit comments

Comments
 (0)