Skip to content

Commit cc5102a

Browse files
author
cclauss
authored
noqa to silence flake8 on Python 3 only syntax
1 parent b3873be commit cc5102a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dynamic_programming/fastfibonacci.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88

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

1515

1616
# returns (F(n), F(n-1))
17-
def _fib(n: int):
17+
def _fib(n: int): # noqa: F821 This syntax is Python 3 only
1818
if n == 0:
1919
# (F(0), F(1))
2020
return (0, 1)

0 commit comments

Comments
 (0)