forked from VimPlug/jedi
Refactor execute_operation a bit
This commit is contained in:
@@ -300,6 +300,17 @@ some_dct['b']
|
||||
#? int() float() str()
|
||||
some_dct['c']
|
||||
|
||||
class Foo:
|
||||
pass
|
||||
|
||||
objects = {object(): 1, Foo: '', Foo(): 3.0}
|
||||
#? int() float() str()
|
||||
objects[Foo]
|
||||
#? int() float() str()
|
||||
objects[Foo()]
|
||||
#? int() float() str()
|
||||
objects['']
|
||||
|
||||
# -----------------
|
||||
# with variable as index
|
||||
# -----------------
|
||||
|
||||
@@ -56,6 +56,12 @@ a
|
||||
(3 ** 3)
|
||||
#? int() str()
|
||||
(3 ** 'a')
|
||||
#? int() str()
|
||||
(3 + 'a')
|
||||
#? bool()
|
||||
(3 == 'a')
|
||||
#? bool()
|
||||
(3 >= 'a')
|
||||
|
||||
class X():
|
||||
foo = 2
|
||||
|
||||
Reference in New Issue
Block a user