We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73208c5 commit 4ab0b6bCopy full SHA for 4ab0b6b
othello/apps/tournaments/utils.py
@@ -1,15 +1,15 @@
1
import logging
2
-from typing import Iterator, List, TypeVar
+from typing import Iterator, List, Tuple, TypeVar
3
4
from .models import TournamentPlayer
5
6
T = TypeVar("T")
7
logger = logging.getLogger("othello")
8
9
10
-def chunks(v: List[T], n: int) -> Iterator[List[T]]:
+def chunks(v: List[T], n: int) -> Iterator[Tuple[T]]:
11
for i in range(0, len(v), n):
12
- yield v[i: i + n]
+ yield tuple(v[i: i + n])
13
14
15
def get_updated_ranking(player: TournamentPlayer) -> float:
0 commit comments