rework so that it also works withouty pep0484 type hints in jedi_typing.py
This commit is contained in:
1 parent
52cc721f45
commit
cc6bd7d161
4 files changed
+79
-59
No files matched your search
@@ -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