Index: flake8-eyeo/tests/A111.py |
=================================================================== |
--- a/flake8-eyeo/tests/A111.py |
+++ b/flake8-eyeo/tests/A111.py |
@@ -10,6 +10,17 @@ |
else: |
return |
+ # * A111 |
+ for (a, b, c) in y: |
+ # * A111 |
+ result = (a + b + c) |
+ # * A111 |
+ return result or ('foo') |
+ |
+ # A111 |
+ (a, b, c) = x |
+ del a, b, c |
+ |
def mandatory_parenthesis(x, y, z): |
if (): |
@@ -25,3 +36,11 @@ |
if (x or |
y): |
return |
+ |
+ |
+def acceptable_parenthesis(x, y, z): |
+ a = (x == y) |
+ b = (x or y == z) |
+ c = (x + y) / z |
+ d = (x and y) or z |
+ return (a, b, c, d) |