temporary fix for typing.Mapping[...].items(), can be removed after #683 is fixed

This commit is contained in:
Claude
2016-01-17 17:05:31 +01:00
parent b316fb94c4
commit 941da773f6

View File

@@ -71,7 +71,7 @@ def factory(typing_name, indextypes):
class ItemsView(abc.ItemsView):
def __iter__(self):
while True:
yield Tuple()
yield (indextypes[0](), indextypes[1]())
class Mapping(Iterable, abc.Mapping):
def __getitem__(self, item):