Index: flake8-abp/tests/A302.py |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/flake8-abp/tests/A302.py |
@@ -0,0 +1,23 @@ |
+# * A302 |
+def foo(type): |
+ # A302 |
+ from io import open |
+ file = open(__file__) |
+ |
+ # A302 |
+ id = 0 |
+ |
+ return (file, id) |
+ |
+ |
+try: |
+ unichr |
+except NameError: |
+ unichr = chr |
+ |
+ |
+class Foo: |
+ id = 0 |
+ |
+ def type(self): |
+ pass |