Skip to content

Commit 7b2b221

Browse files
Prep 4.15.1 (mongodb#2530)
Co-authored-by: Noah Stapp <[email protected]>
1 parent ebe8bfb commit 7b2b221

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

doc/changelog.rst

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ Changes in Version 4.15.1 (2025/09/11)
66

77
Version 4.15.1 is a bug fix release.
88

9-
- Fixed a bug in :meth:`~pymongo.synchronous.encryption.ClientEncryption.encrypt` and :meth:`~pymongo.asynchronous.encryption.AsyncClientEncryption.encrypt`
10-
that would cause a ``TypeError`` when using ``pymongocrypt<1.16`` by passing an unsupported ``type_opts`` parameter even if
11-
Queryable Encryption text queries beta was not used.
9+
- Fixed a bug in :meth:`~pymongo.synchronous.encryption.ClientEncryption.encrypt`
10+
and :meth:`~pymongo.asynchronous.encryption.AsyncClientEncryption.encrypt`
11+
that would cause a ``TypeError`` when using ``pymongocrypt<1.16`` by passing
12+
an unsupported ``type_opts`` parameter even if Queryable Encryption text
13+
queries beta was not used.
14+
15+
- Fixed a bug in ``AsyncMongoClient`` that caused a ``ServerSelectionTimeoutError``
16+
when used with ``uvicorn``, ``FastAPI``, or ``uvloop``.
1217

1318
Issues Resolved
1419
...............
@@ -18,7 +23,6 @@ in this release.
1823

1924
.. _PyMongo 4.15.1 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=46486
2025

21-
2226
Changes in Version 4.15.0 (2025/09/10)
2327
--------------------------------------
2428

@@ -31,17 +35,20 @@ PyMongo 4.15 brings a number of changes including:
3135
:attr:`~pymongo.encryption.QueryType.SUBSTRINGPREVIEW`,
3236
as part of the experimental Queryable Encryption text queries beta.
3337
``pymongocrypt>=1.16`` is required for text query support.
34-
- Added :class:`bson.decimal128.DecimalEncoder` and :class:`bson.decimal128.DecimalDecoder`
35-
to support encoding and decoding of BSON Decimal128 values to decimal.Decimal values using the TypeRegistry API.
38+
- Added :class:`bson.decimal128.DecimalEncoder` and
39+
:class:`bson.decimal128.DecimalDecoder`
40+
to support encoding and decoding of BSON Decimal128 values to
41+
decimal.Decimal values using the TypeRegistry API.
3642
- Added support for Windows ``arm64`` wheels.
3743

3844
Changes in Version 4.14.1 (2025/08/19)
3945
--------------------------------------
4046

4147
Version 4.14.1 is a bug fix release.
4248

43-
- Fixed a bug in ``MongoClient.append_metadata()`` and ``AsyncMongoClient.append_metadata()``
44-
that allowed duplicate ``DriverInfo.name`` to be appended to the metadata.
49+
- Fixed a bug in ``MongoClient.append_metadata()`` and
50+
``AsyncMongoClient.append_metadata()``
51+
that allowed duplicate ``DriverInfo.name`` to be appended to the metadata.
4552

4653
Issues Resolved
4754
...............

pymongo/network_layer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import struct
2323
import sys
2424
import time
25-
from asyncio import BaseTransport, BufferedProtocol, Future, Protocol, Transport
25+
from asyncio import BaseProtocol, BaseTransport, BufferedProtocol, Future, Transport
2626
from typing import (
2727
TYPE_CHECKING,
2828
Any,
@@ -250,7 +250,7 @@ def recv_into(self, buffer: bytes) -> int:
250250
return self.conn.recv_into(buffer)
251251

252252

253-
class PyMongoBaseProtocol(Protocol):
253+
class PyMongoBaseProtocol(BaseProtocol):
254254
def __init__(self, timeout: Optional[float] = None):
255255
self.transport: Transport = None # type: ignore[assignment]
256256
self._timeout = timeout

0 commit comments

Comments
 (0)