mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 01:38:36 +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):
|
def __getitem__(self, index):
|
||||||
return indextypes[0]()
|
return indextypes[0]()
|
||||||
|
|
||||||
def __len__(self):
|
|
||||||
import sys
|
|
||||||
return sys.maxint
|
|
||||||
|
|
||||||
class MutableSequence(Sequence, abc.MutableSequence):
|
class MutableSequence(Sequence, abc.MutableSequence):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -47,13 +43,6 @@ def factory(typing_name, indextypes):
|
|||||||
else:
|
else:
|
||||||
return indextypes[index]()
|
return indextypes[index]()
|
||||||
|
|
||||||
def __len__(self):
|
|
||||||
if indextypes[1] == ...:
|
|
||||||
import sys
|
|
||||||
return sys.maxint
|
|
||||||
else:
|
|
||||||
return len(indextypes)
|
|
||||||
|
|
||||||
class AbstractSet(Iterable, abc.Set):
|
class AbstractSet(Iterable, abc.Set):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user