mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 19:24:39 +08:00
temporary fix for typing.Mapping[...].items(), can be removed after #683 is fixed
This commit is contained in:
@@ -71,7 +71,7 @@ def factory(typing_name, indextypes):
|
|||||||
class ItemsView(abc.ItemsView):
|
class ItemsView(abc.ItemsView):
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
while True:
|
while True:
|
||||||
yield Tuple()
|
yield (indextypes[0](), indextypes[1]())
|
||||||
|
|
||||||
class Mapping(Iterable, abc.Mapping):
|
class Mapping(Iterable, abc.Mapping):
|
||||||
def __getitem__(self, item):
|
def __getitem__(self, item):
|
||||||
|
|||||||
Reference in New Issue
Block a user