Skip to content

Commit 8c44ee6

Browse files
authored
Merge branch 'master' into test_against_unstable_hiredis-py
2 parents 20d0bda + 4fd1100 commit 8c44ee6

File tree

8 files changed

+142
-126
lines changed

8 files changed

+142
-126
lines changed

.github/workflows/integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
max-parallel: 15
7575
fail-fast: false
7676
matrix:
77-
redis-version: ['8.0-RC2-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.2.7', '6.2.17']
77+
redis-version: ['8.0.1-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.2.7', '6.2.17']
7878
python-version: ['3.8', '3.13']
7979
parser-backend: ['plain']
8080
event-loop: ['asyncio']

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
* Close Unix sockets if the connection attempt fails. This prevents `ResourceWarning`s. (#3314)
7171
* Close SSL sockets if the connection attempt fails, or if validations fail. (#3317)
7272
* Eliminate mutable default arguments in the `redis.commands.core.Script` class. (#3332)
73+
* Allow newer versions of PyJWT as dependency. (#3630)
7374

7475
* 4.1.3 (Feb 8, 2022)
7576
* Fix flushdb and flushall (#1926)
@@ -1146,3 +1147,4 @@ incompatible in code using*SCAN commands loops such as
11461147
* Implemented STRLEN
11471148
* Implemented PERSIST
11481149
* Implemented SETRANGE
1150+
* Changed type annotation of the `num` parameter in `zrange` from `int` to `Optional[int]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ocsp = [
4141
"requests>=2.31.0",
4242
]
4343
jwt = [
44-
"PyJWT~=2.9.0",
44+
"PyJWT>=2.9.0",
4545
]
4646

4747
[project.urls]

redis/asyncio/cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,9 @@ async def initialize(self) -> None:
13131313
startup_nodes_reachable = False
13141314
fully_covered = False
13151315
exception = None
1316-
for startup_node in self.startup_nodes.values():
1316+
# Convert to tuple to prevent RuntimeError if self.startup_nodes
1317+
# is modified during iteration
1318+
for startup_node in tuple(self.startup_nodes.values()):
13171319
try:
13181320
# Make sure cluster mode is enabled on this node
13191321
try:

redis/cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,9 @@ def initialize(self):
16741674
fully_covered = False
16751675
kwargs = self.connection_kwargs
16761676
exception = None
1677-
for startup_node in self.startup_nodes.values():
1677+
# Convert to tuple to prevent RuntimeError if self.startup_nodes
1678+
# is modified during iteration
1679+
for startup_node in tuple(self.startup_nodes.values()):
16781680
try:
16791681
if startup_node.redis_connection:
16801682
r = startup_node.redis_connection

0 commit comments

Comments
 (0)