1
0
forked from VimPlug/jedi

Get py__simple_getitem__ modifications working for list/dict instances

This commit is contained in:
Dave Halter
2019-08-26 21:48:41 +02:00
parent 24b392b915
commit 8311328a8e
3 changed files with 40 additions and 11 deletions

View File

@@ -326,6 +326,15 @@ some_lst[0]
#? int str tuple
some_lst[1]
some_lst2 = list([1])
some_lst2[3] = ''
#? int() str()
some_lst2[0]
#? str()
some_lst2[3]
#? int() str()
some_lst2[2]
# -----------------
# set setitem/other modifications (should not work)
# -----------------
@@ -357,3 +366,16 @@ some_dct['x']
some_dct['unknown']
#? float
some_dct['a']
some_dct = dict({'a': 1, 1: ''})
some_dct = dict(a=1, x=''})
#? int() str()
some_dct['la']
some_dct['x'] = list
some_dct['y'] = tuple
#? list
some_dct['x']
#? int() str() list tuple
some_dct['unknown']
#? int() str() list tuple
some_dct['a']