Skip to content

Commit d3a3ada

Browse files
Update client.py sleep_time typing for run_in_thread function (#2977)
Changed from `sleep_time: int = 0` to `sleep_time: float = 0.0` To avoid Pylance complaining: `Argument of type "float" cannot be assigned to parameter "sleep_time" of type "int" in function "run_in_thread" "float" is incompatible with "int"`
1 parent 14be2da commit d3a3ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ def handle_message(self, response, ignore_subscribe_messages=False):
11001100

11011101
def run_in_thread(
11021102
self,
1103-
sleep_time: int = 0,
1103+
sleep_time: float = 0.0,
11041104
daemon: bool = False,
11051105
exception_handler: Optional[Callable] = None,
11061106
) -> "PubSubWorkerThread":

0 commit comments

Comments
 (0)