Skip to content

Commit 2f1cb5f

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/factorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
def factorial(number: int) -> int:
77
"""
8-
8+
99
Calculate the factorial of a non-negative integer.
1010
1111
:param n: non-negative integer
1212
:return: factorial of n
1313
:raises ValueError: if n is negative
14-
14+
1515
"""
1616
if number != int(number):
1717
raise ValueError("factorial() only accepts integral values")

0 commit comments

Comments
 (0)