fix: [type] Removed the return type of the function n_at_a_time.

This commit is contained in:
Cédric Bonhomme 2023-05-21 10:21:48 +02:00
parent 7abce7d5d9
commit 3fd55e2e79
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D

View file

@ -26,7 +26,7 @@ __license__ = "GPLv3"
import base64 import base64
import itertools import itertools
from functools import reduce from functools import reduce
from typing import IO, List, Tuple, Union from typing import IO, List, Union
from PIL import Image from PIL import Image
@ -74,9 +74,7 @@ def setlsb(component: int, bit: str) -> int:
return component & ~1 | int(bit) return component & ~1 | int(bit)
def n_at_a_time( def n_at_a_time(items: List[int], n: int, fillvalue: str):
items: List[int], n: int, fillvalue: str
) -> itertools.zip_longest[Tuple[object, ...]]:
"""Returns an iterator which groups n items at a time. """Returns an iterator which groups n items at a time.
Any final partial tuple will be padded with the fillvalue Any final partial tuple will be padded with the fillvalue