From 3fd55e2e795afcc593f20aa4d183d3fa2ff6c7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Sun, 21 May 2023 10:21:48 +0200 Subject: [PATCH] fix: [type] Removed the return type of the function n_at_a_time. --- stegano/tools.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stegano/tools.py b/stegano/tools.py index ef0f9c7..d33b131 100755 --- a/stegano/tools.py +++ b/stegano/tools.py @@ -26,7 +26,7 @@ __license__ = "GPLv3" import base64 import itertools from functools import reduce -from typing import IO, List, Tuple, Union +from typing import IO, List, Union from PIL import Image @@ -74,9 +74,7 @@ def setlsb(component: int, bit: str) -> int: return component & ~1 | int(bit) -def n_at_a_time( - items: List[int], n: int, fillvalue: str -) -> itertools.zip_longest[Tuple[object, ...]]: +def n_at_a_time(items: List[int], n: int, fillvalue: str): """Returns an iterator which groups n items at a time. Any final partial tuple will be padded with the fillvalue