From c12b371e7daae58909085755a127e1f8256ecea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Sun, 21 May 2023 10:26:33 +0200 Subject: [PATCH] chg: [type] Changed the way the dict in erotosthenes funtion is typed. --- stegano/lsb/generators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stegano/lsb/generators.py b/stegano/lsb/generators.py index 4b433d2..969e3ec 100644 --- a/stegano/lsb/generators.py +++ b/stegano/lsb/generators.py @@ -71,7 +71,7 @@ def eratosthenes() -> Iterator[int]: """Generate the prime numbers with the sieve of Eratosthenes. https://oeis.org/A000040 """ - d = {} # type: Dict[int, List[int]] + d: Dict[int, List[int]] = {} for i in itertools.count(2): if i in d: for j in d[i]: