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

This commit is contained in:
Claude committed 2016-01-17 10:41:40 +01:00
1 parent 52cc721f45
commit cc6bd7d161
4 files changed
+79 -59

No files matched your search

+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):