Skip to content

Commit ce8598f

Browse files
committed
[mypy] fix type annotations for project euler problem007/sol2
1 parent 21977f7 commit ce8598f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_euler/problem_007/sol2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def solution(nth: int = 10001) -> int:
7373
raise TypeError("Parameter nth must be int or castable to int.") from None
7474
if nth <= 0:
7575
raise ValueError("Parameter nth must be greater than or equal to one.")
76-
primes = []
76+
primes: list[int] = []
7777
num = 2
7878
while len(primes) < nth:
7979
if isprime(num):

0 commit comments

Comments
 (0)