redis 6.3.0__py3-none-any.whl → 7.0.0b1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
redis/event.py CHANGED
@@ -152,7 +152,7 @@ class AfterSingleConnectionInstantiationEvent:
152
152
  self,
153
153
  connection,
154
154
  client_type: ClientType,
155
- connection_lock: Union[threading.Lock, asyncio.Lock],
155
+ connection_lock: Union[threading.RLock, asyncio.Lock],
156
156
  ):
157
157
  self._connection = connection
158
158
  self._client_type = client_type
@@ -167,7 +167,7 @@ class AfterSingleConnectionInstantiationEvent:
167
167
  return self._client_type
168
168
 
169
169
  @property
170
- def connection_lock(self) -> Union[threading.Lock, asyncio.Lock]:
170
+ def connection_lock(self) -> Union[threading.RLock, asyncio.Lock]:
171
171
  return self._connection_lock
172
172
 
173
173
 
@@ -177,7 +177,7 @@ class AfterPubSubConnectionInstantiationEvent:
177
177
  pubsub_connection,
178
178
  connection_pool,
179
179
  client_type: ClientType,
180
- connection_lock: Union[threading.Lock, asyncio.Lock],
180
+ connection_lock: Union[threading.RLock, asyncio.Lock],
181
181
  ):
182
182
  self._pubsub_connection = pubsub_connection
183
183
  self._connection_pool = connection_pool
@@ -197,7 +197,7 @@ class AfterPubSubConnectionInstantiationEvent:
197
197
  return self._client_type
198
198
 
199
199
  @property
200
- def connection_lock(self) -> Union[threading.Lock, asyncio.Lock]:
200
+ def connection_lock(self) -> Union[threading.RLock, asyncio.Lock]:
201
201
  return self._connection_lock
202
202
 
203
203