summaryrefslogtreecommitdiff
path: root/tests/functional/u/unused/unused_import_assigned_to.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/u/unused/unused_import_assigned_to.py')
-rw-r--r--tests/functional/u/unused/unused_import_assigned_to.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/functional/u/unused/unused_import_assigned_to.py b/tests/functional/u/unused/unused_import_assigned_to.py
new file mode 100644
index 000000000..81d3e2ce0
--- /dev/null
+++ b/tests/functional/u/unused/unused_import_assigned_to.py
@@ -0,0 +1,25 @@
+# pylint: disable=missing-docstring, import-error, invalid-name
+# pylint: disable=too-few-public-methods, blacklisted-name, no-member, useless-object-inheritance
+
+import uuid
+
+# Note this import doesn't actually exist
+import foo
+
+from .a import x
+
+
+class Y(object):
+ x = x[0]
+
+
+def test(default=None):
+ return default
+
+
+class BaseModel(object):
+ uuid = test(default=uuid.uuid4)
+
+
+class bar(object):
+ foo = foo.baz