forked from VimPlug/jedi
rework so that it also works withouty pep0484 type hints in jedi_typing.py
This commit is contained in:
@@ -8,10 +8,11 @@ from collections import abc
|
||||
|
||||
def factory(typing_name, indextype):
|
||||
class Sequence(abc.Sequence):
|
||||
def __getitem__(self) -> indextype:
|
||||
pass
|
||||
def __getitem__(self, index: int):
|
||||
return indextype()
|
||||
|
||||
class MutableSequence(Sequence, abc.MutableSequence):
|
||||
def __setitem__(self, index: int, value: indextype):
|
||||
pass
|
||||
|
||||
class List(MutableSequence, list):
|
||||
|
||||
Reference in New Issue
Block a user