mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-09 05:22:19 +08:00
I don't need the __len__ for __iter__ to work (eventually), so leaving it out for now
This commit is contained in:
@@ -28,10 +28,6 @@ def factory(typing_name, indextypes):
|
||||
def __getitem__(self, index):
|
||||
return indextypes[0]()
|
||||
|
||||
def __len__(self):
|
||||
import sys
|
||||
return sys.maxint
|
||||
|
||||
class MutableSequence(Sequence, abc.MutableSequence):
|
||||
pass
|
||||
|
||||
@@ -47,13 +43,6 @@ def factory(typing_name, indextypes):
|
||||
else:
|
||||
return indextypes[index]()
|
||||
|
||||
def __len__(self):
|
||||
if indextypes[1] == ...:
|
||||
import sys
|
||||
return sys.maxint
|
||||
else:
|
||||
return len(indextypes)
|
||||
|
||||
class AbstractSet(Iterable, abc.Set):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user