@@ -197,25 +197,25 @@ def __init__(
197
197
- `port` (optional): port number on which to connect
198
198
- `document_class` (optional): default class to use for
199
199
documents returned from queries on this client
200
- - `type_registry` (optional): instance of
201
- :class:`~bson.codec_options.TypeRegistry` to enable encoding
202
- and decoding of custom types.
203
200
- `tz_aware` (optional): if ``True``,
204
201
:class:`~datetime.datetime` instances returned as values
205
202
in a document by this :class:`MongoClient` will be timezone
206
203
aware (otherwise they will be naive)
207
204
- `connect` (optional): if ``True`` (the default), immediately
208
205
begin connecting to MongoDB in the background. Otherwise connect
209
206
on the first operation.
207
+ - `type_registry` (optional): instance of
208
+ :class:`~bson.codec_options.TypeRegistry` to enable encoding
209
+ and decoding of custom types.
210
+
211
+ | **Other optional parameters can be passed as keyword arguments:**
212
+
210
213
- `directConnection` (optional): if ``True``, forces this client to
211
214
connect directly to the specified MongoDB host as a standalone.
212
215
If ``false``, the client connects to the entire replica set of
213
216
which the given MongoDB host(s) is a part. If this is ``True``
214
217
and a mongodb+srv:// URI or a URI containing multiple seeds is
215
218
provided, an exception will be raised.
216
-
217
- | **Other optional parameters can be passed as keyword arguments:**
218
-
219
219
- `maxPoolSize` (optional): The maximum allowable number of
220
220
concurrent connections to each connected server. Requests to a
221
221
server will block if there are `maxPoolSize` outstanding
@@ -346,6 +346,10 @@ def __init__(
346
346
`csharpLegacy`, `standard` and `unspecified`. New applications
347
347
should consider setting this to `standard` for cross language
348
348
compatibility. See :ref:`handling-uuid-data-example` for details.
349
+ - `unicode_decode_error_handler`: The error handler to apply when
350
+ a Unicode-related error occurs during BSON decoding that would
351
+ otherwise raise :exc:`UnicodeDecodeError`. Valid options include
352
+ 'strict', 'replace', and 'ignore'. Defaults to 'strict'.
349
353
350
354
| **Write Concern options:**
351
355
| (Only set if passed. No default values.)
0 commit comments