Skip to content

Commit 6801d07

Browse files
committed
Fix typehints in project_euler/problem01
1 parent 29afc3a commit 6801d07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: project_euler/problem_01/sol2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
def solution(n: int = 1000) -> 1000:
9+
def solution(n: int = 1000) -> int:
1010
"""Returns the sum of all the multiples of 3 or 5 below n.
1111
1212
>>> solution(3)

Diff for: project_euler/problem_01/sol3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88

9-
def solution(n: int = 1000) -> 1000:
9+
def solution(n: int = 1000) -> int:
1010
"""
1111
This solution is based on the pattern that the successive numbers in the
1212
series follow: 0+3,+2,+1,+3,+1,+2,+3.

0 commit comments

Comments
 (0)