summaryrefslogtreecommitdiff
path: root/pylint/test/functional/star_needs_assignment_target_py35.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/star_needs_assignment_target_py35.py')
-rw-r--r--pylint/test/functional/star_needs_assignment_target_py35.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pylint/test/functional/star_needs_assignment_target_py35.py b/pylint/test/functional/star_needs_assignment_target_py35.py
new file mode 100644
index 0000000..d2801de
--- /dev/null
+++ b/pylint/test/functional/star_needs_assignment_target_py35.py
@@ -0,0 +1,10 @@
+"""
+Test PEP 0448 -- Additional Unpacking Generalizations
+https://www.python.org/dev/peps/pep-0448/
+"""
+UNPACK_TUPLE = (*range(4), 4)
+UNPACK_LIST = [*range(4), 4]
+UNPACK_SET = {*range(4), 4}
+UNPACK_DICT = {'a': 1, **{'b': '2'}}
+UNPACK_DICT2 = {**UNPACK_DICT, "x": 1, "y": 2}
+UNPACK_DICT3 = {**{'a': 1}, 'a': 2, **{'a': 3}}