forked from VimPlug/jedi
Random objects should not be affected by list/dict modifications
This commit is contained in:
@@ -327,7 +327,7 @@ some_lst[0]
|
||||
some_lst[1]
|
||||
|
||||
# -----------------
|
||||
# set setitem (should not work)
|
||||
# set setitem/other modifications (should not work)
|
||||
# -----------------
|
||||
|
||||
some_set = {int}
|
||||
@@ -337,6 +337,13 @@ some_set[0]
|
||||
#? int
|
||||
some_set[3]
|
||||
|
||||
something = object()
|
||||
something[3] = str
|
||||
#?
|
||||
something[0]
|
||||
#?
|
||||
something[3]
|
||||
|
||||
# -----------------
|
||||
# dict setitem
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user