Index: flake8-abp/tests/A207.py |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/flake8-abp/tests/A207.py |
@@ -0,0 +1,34 @@ |
+def make_dict(): |
+ return { |
+ 'foo': None, |
+ 'bar': None, |
+ 0: None, |
+ 1: None, |
+ |
+ # A207 |
+ 'foo': None, |
+ # A207 |
+ ['bar' + ' '][0].strip(): None, |
+ # A207 |
+ 0.0: None, |
+ # A207 |
+ True: None, |
+ } |
+ |
+ |
+def make_set(): |
+ return { |
+ 'foo', |
+ 'bar', |
+ 0, |
+ 1, |
+ |
+ # A207 |
+ 'foo', |
+ # A207 |
+ ['bar' + ' '][0].strip(), |
+ # A207 |
+ 0.0, |
+ # A207 |
+ True, |
+ } |