1
0
forked from VimPlug/jedi

rework so that it also works withouty pep0484 type hints in jedi_typing.py

This commit is contained in:
Claude
2015-12-30 18:47:08 +01:00
parent 52cc721f45
commit cc6bd7d161
4 changed files with 79 additions and 59 deletions
+3 -2
View File
@@ -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):