From cc5102ab019fca9b19c69db16fa1b43412acb5d7 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 20 Jan 2018 12:33:27 +0100 Subject: [PATCH] noqa to silence flake8 on Python 3 only syntax --- dynamic_programming/fastfibonacci.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynamic_programming/fastfibonacci.py b/dynamic_programming/fastfibonacci.py index cdfa2dd08..2c3960d11 100644 --- a/dynamic_programming/fastfibonacci.py +++ b/dynamic_programming/fastfibonacci.py @@ -7,14 +7,14 @@ import sys # returns F(n) -def fibonacci(n: int): +def fibonacci(n: int): # noqa: F821 This syntax is Python 3 only if n < 0: raise ValueError("Negative arguments are not supported") return _fib(n)[0] # returns (F(n), F(n-1)) -def _fib(n: int): +def _fib(n: int): # noqa: F821 This syntax is Python 3 only if n == 0: # (F(0), F(1)) return (0, 1)