Skip to content

Commit 475cdac

Browse files
authored
Update fast_fibonacci.py
1 parent 8c01da2 commit 475cdac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dynamic_programming/fast_fibonacci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99

1010
# returns F(n)
11-
def fibonacci(n: int): # noqa: E999 This syntax is Python 3 only
11+
def fibonacci(n: int) -> int: # noqa: E999 This syntax is Python 3 only
1212
if n < 0:
1313
raise ValueError("Negative arguments are not supported")
1414
return _fib(n)[0]
1515

1616

1717
# returns (F(n), F(n-1))
18-
def _fib(n: int): # noqa: E999 This syntax is Python 3 only
18+
def _fib(n: int) -> int: # noqa: E999 This syntax is Python 3 only
1919
if n == 0:
2020
# (F(0), F(1))
2121
return (0, 1)

0 commit comments

Comments
 (0)