Skip to content

Commit 8a0decd

Browse files
committed
Merge branch 'master' of github.com:mongodb/mongo-python-driver
2 parents ca7c8c2 + ff1d903 commit 8a0decd

File tree

9 files changed

+337
-333
lines changed

9 files changed

+337
-333
lines changed

.github/workflows/release-python.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
PRODUCT_NAME: PyMongo
2020
# Changes per branch
2121
SILK_ASSET_GROUP: mongodb-python-driver
22+
EVERGREEN_PROJECT: mongodb-python-driver
2223

2324
defaults:
2425
run:
@@ -55,7 +56,7 @@ jobs:
5556
needs: [pre-publish]
5657
uses: ./.github/workflows/codeql.yml
5758
with:
58-
ref: ${{ inputs.version }}
59+
ref: ${{ github.ref }}
5960

6061
publish:
6162
needs: [build-dist, static-scan]
@@ -82,5 +83,6 @@ jobs:
8283
following_version: ${{ inputs.following_version }}
8384
product_name: ${{ env.PRODUCT_NAME }}
8485
silk_asset_group: ${{ env.SILK_ASSET_GROUP }}
86+
evergreen_project: ${{ env.EVERGREEN_PROJECT }}
8587
token: ${{ github.token }}
8688
dry_run: ${{ inputs.dry_run }}

pymongo/asynchronous/helpers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,10 @@ async def inner(*args: Any, **kwargs: Any) -> Any:
313313
return cast(F, inner)
314314

315315

316-
async def anext(cls: Any) -> Any:
317-
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
318-
if sys.version_info >= (3, 10):
319-
return await builtins.anext(cls)
320-
else:
316+
if sys.version_info >= (3, 10):
317+
anext = builtins.anext
318+
else:
319+
320+
async def anext(cls: Any) -> Any:
321+
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
321322
return await cls.__anext__()

pymongo/asynchronous/mongo_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
from pymongo.write_concern import DEFAULT_WRITE_CONCERN, WriteConcern
113113

114114
if TYPE_CHECKING:
115-
import sys
116115
from types import TracebackType
117116

118117
from bson.objectid import ObjectId
@@ -126,11 +125,6 @@
126125
from pymongo.asynchronous.server_selectors import Selection
127126
from pymongo.read_concern import ReadConcern
128127

129-
if sys.version_info[:2] >= (3, 9):
130-
pass
131-
else:
132-
# Deprecated since version 3.9: collections.abc.Generator now supports [].
133-
pass
134128

135129
T = TypeVar("T")
136130

pymongo/asynchronous/pool.py

Lines changed: 152 additions & 151 deletions
Large diffs are not rendered by default.

pymongo/synchronous/helpers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,10 @@ def inner(*args: Any, **kwargs: Any) -> Any:
313313
return cast(F, inner)
314314

315315

316-
def next(cls: Any) -> Any:
317-
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
318-
if sys.version_info >= (3, 10):
319-
return builtins.next(cls)
320-
else:
316+
if sys.version_info >= (3, 10):
317+
next = builtins.next
318+
else:
319+
320+
def next(cls: Any) -> Any:
321+
"""Compatibility function until we drop 3.9 support: https://docs.python.org/3/library/functions.html#anext."""
321322
return cls.__next__()

pymongo/synchronous/mongo_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
from pymongo.write_concern import DEFAULT_WRITE_CONCERN, WriteConcern
112112

113113
if TYPE_CHECKING:
114-
import sys
115114
from types import TracebackType
116115

117116
from bson.objectid import ObjectId
@@ -125,11 +124,6 @@
125124
from pymongo.synchronous.server import Server
126125
from pymongo.synchronous.server_selectors import Selection
127126

128-
if sys.version_info[:2] >= (3, 9):
129-
pass
130-
else:
131-
# Deprecated since version 3.9: collections.abc.Generator now supports [].
132-
pass
133127

134128
T = TypeVar("T")
135129

0 commit comments

Comments
 (0)