Skip to content

Commit 8e76b58

Browse files
committed
replace batched from itertools
1 parent 6a61863 commit 8e76b58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arq/jobs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from dataclasses import dataclass
66
from datetime import datetime
77
from enum import Enum
8-
from itertools import batched
98
from typing import Any, Callable, Dict, Optional, Tuple
109

1110
from redis.asyncio import Redis
@@ -74,7 +73,7 @@ class JobResult(JobDef):
7473

7574

7675
def _list_to_dict(input_list: list[Any]) -> dict[Any, Any]:
77-
return {key: value for key, value in batched(input_list, 2)}
76+
return dict(zip(input_list[::2], input_list[1::2], strict=True))
7877

7978

8079
class Job:

0 commit comments

Comments
 (0)