mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 22:15:16 +08:00
implement slicing for __getitem__ with interpreter
This commit is contained in:
1 parent
09854ae6ca
commit
79e2ec85cc
3 files changed
+39
-18
No files matched your search
@@ -63,3 +63,11 @@ class TestInterpreterAPI(TestCase):
|
||||
self.check_interpreter_complete('array[2].upper',
|
||||
locals(),
|
||||
['upper'])
|
||||
|
||||
def test_slice(self):
|
||||
class Foo():
|
||||
bar = []
|
||||
baz = 'xbarx'
|
||||
self.check_interpreter_complete('getattr(Foo, baz[1:-1]).append',
|
||||
locals(),
|
||||
['append'])
|
||||
Reference in new issue
Block a user