mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
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
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user