We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3873be commit cc5102aCopy full SHA for cc5102a
dynamic_programming/fastfibonacci.py
@@ -7,14 +7,14 @@
7
8
9
# returns F(n)
10
-def fibonacci(n: int):
+def fibonacci(n: int): # noqa: F821 This syntax is Python 3 only
11
if n < 0:
12
raise ValueError("Negative arguments are not supported")
13
return _fib(n)[0]
14
15
16
# returns (F(n), F(n-1))
17
-def _fib(n: int):
+def _fib(n: int): # noqa: F821 This syntax is Python 3 only
18
if n == 0:
19
# (F(0), F(1))
20
return (0, 1)
0 commit comments