1
0
forked from VimPlug/jedi

Fix an issue with inherited lists.

This commit is contained in:
Dave Halter
2016-07-26 09:24:51 +02:00
parent fc7fd9d989
commit a6dd7bf822
2 changed files with 14 additions and 1 deletions

View File

@@ -311,6 +311,17 @@ for i in 0, 2:
#? int() str()
GetItemWithList()[i]
# With super
class SuperYeah(list):
def __getitem__(self, index):
return super()[index]
#?
SuperYeah([1])[0]
#?
SuperYeah()[0]
# -----------------
# conversions
# -----------------