Skip to content

Commit 31d63a1

Browse files
committed
Fix is_prime: add proper type hints
1 parent e07f4d1 commit 31d63a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ciphers/sha256.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def is_prime(num_to_test: int) -> bool:
232232
return all(num_to_test % f != 0 for f in range(2, math.isqrt(num_to_test) + 1))
233233

234234

235-
def first_n_primes(count_primes: int):
235+
def first_n_primes(count_primes: int) -> list[int]:
236236
"""
237237
Generates the first n prime numbers using itertools.count and a primality test.
238238
Examples:

0 commit comments

Comments
 (0)