Skip to content

Commit a2b2951

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4226641 commit a2b2951

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maths/sum_of_digits.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections.abc import Callable
22
from timeit import timeit
33

4+
45
def sum_of_digits(n: int) -> int:
56
"""
67
Find the sum of digits of a number.
@@ -56,6 +57,7 @@ def benchmark() -> None:
5657
"""
5758
Benchmark multiple functions, with three different length int values.
5859
"""
60+
5961
def benchmark_a_function(func: Callable, value: int) -> None:
6062
call = f"{func.__name__}({value})"
6163
timing = timeit(f"__main__.{call}", setup="import __main__")

0 commit comments

Comments
 (0)