forked from VimPlug/jedi
should obviously keep typing.py parsable in python 2
This commit is contained in:
@@ -20,15 +20,11 @@ def factory(typing_name, indextype):
|
|||||||
return indextype()
|
return indextype()
|
||||||
|
|
||||||
class Sequence(Iterable, abc.Sequence):
|
class Sequence(Iterable, abc.Sequence):
|
||||||
def __getitem__(self, index: int):
|
def __getitem__(self, index):
|
||||||
return indextype()
|
return indextype()
|
||||||
|
|
||||||
class MutableSequence(Sequence, abc.MutableSequence):
|
class MutableSequence(Sequence, abc.MutableSequence):
|
||||||
def __setitem__(self, index: int, value: indextype):
|
pass
|
||||||
pass
|
|
||||||
|
|
||||||
def __delitem__(self, index: int, value: indextype):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class List(MutableSequence, list):
|
class List(MutableSequence, list):
|
||||||
pass
|
pass
|
||||||
@@ -37,11 +33,7 @@ def factory(typing_name, indextype):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
class MutableSet(AbstractSet, abc.MutableSet):
|
class MutableSet(AbstractSet, abc.MutableSet):
|
||||||
def add(item: indextype):
|
pass
|
||||||
pass
|
|
||||||
|
|
||||||
def discard(item: indextype):
|
|
||||||
pass
|
|
||||||
|
|
||||||
dct = {
|
dct = {
|
||||||
"Sequence": Sequence,
|
"Sequence": Sequence,
|
||||||
|
|||||||
Reference in New Issue
Block a user