File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -276,17 +276,18 @@ def __init__(
276
276
:param type_registry: instance of
277
277
:class:`~bson.codec_options.TypeRegistry` to enable encoding
278
278
and decoding of custom types.
279
- :param datetime_conversion: Specifies how UTC datetimes should be decoded
279
+ :param kwargs: ...
280
+
281
+ | **Other optional parameters can be passed as keyword arguments:**
282
+
283
+ - `datetime_conversion` (optional): Specifies how UTC datetimes should be decoded
280
284
within BSON. Valid options include 'datetime_ms' to return as a
281
285
DatetimeMS, 'datetime' to return as a datetime.datetime and
282
286
raising a ValueError for out-of-range values, 'datetime_auto' to
283
287
return DatetimeMS objects when the underlying datetime is
284
288
out-of-range and 'datetime_clamp' to clamp to the minimum and
285
289
maximum possible datetimes. Defaults to 'datetime'. See
286
290
:ref:`handling-out-of-range-datetimes` for details.
287
-
288
- | **Other optional parameters can be passed as keyword arguments:**
289
-
290
291
- `directConnection` (optional): if ``True``, forces this client to
291
292
connect directly to the specified MongoDB host as a standalone.
292
293
If ``false``, the client connects to the entire replica set of
Original file line number Diff line number Diff line change @@ -274,17 +274,18 @@ def __init__(
274
274
:param type_registry: instance of
275
275
:class:`~bson.codec_options.TypeRegistry` to enable encoding
276
276
and decoding of custom types.
277
- :param datetime_conversion: Specifies how UTC datetimes should be decoded
277
+ :param kwargs: ...
278
+
279
+ | **Other optional parameters can be passed as keyword arguments:**
280
+
281
+ - `datetime_conversion` (optional): Specifies how UTC datetimes should be decoded
278
282
within BSON. Valid options include 'datetime_ms' to return as a
279
283
DatetimeMS, 'datetime' to return as a datetime.datetime and
280
284
raising a ValueError for out-of-range values, 'datetime_auto' to
281
285
return DatetimeMS objects when the underlying datetime is
282
286
out-of-range and 'datetime_clamp' to clamp to the minimum and
283
287
maximum possible datetimes. Defaults to 'datetime'. See
284
288
:ref:`handling-out-of-range-datetimes` for details.
285
-
286
- | **Other optional parameters can be passed as keyword arguments:**
287
-
288
289
- `directConnection` (optional): if ``True``, forces this client to
289
290
connect directly to the specified MongoDB host as a standalone.
290
291
If ``false``, the client connects to the entire replica set of
You can’t perform that action at this time.
0 commit comments