From 2d82816e14e70376bdcbe1f1e70e06bdc9c406a0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 18 Jan 2016 16:39:08 -0800 Subject: [PATCH] Add Iterable base class to csv.DictReader. Fixes #47. --- stdlib/2.7/csv.pyi | 2 +- stdlib/3/csv.pyi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/2.7/csv.pyi b/stdlib/2.7/csv.pyi index 37b51ce39..ce330105e 100644 --- a/stdlib/2.7/csv.pyi +++ b/stdlib/2.7/csv.pyi @@ -61,7 +61,7 @@ class excel_tab(excel): class unix_dialect(Dialect): pass -class DictReader: +class DictReader(Iterable): restkey = ... # type: Any restval = ... # type: Any reader = ... # type: Any diff --git a/stdlib/3/csv.pyi b/stdlib/3/csv.pyi index 72dc2d26b..7b41cc8c2 100644 --- a/stdlib/3/csv.pyi +++ b/stdlib/3/csv.pyi @@ -2,7 +2,7 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any +from typing import Any, Iterable QUOTE_ALL = ... # type: int QUOTE_MINIMAL = ... # type: int @@ -48,7 +48,7 @@ class unix_dialect(Dialect): lineterminator = ... # type: Any quoting = ... # type: Any -class DictReader: +class DictReader(Iterable): restkey = ... # type: Any restval = ... # type: Any reader = ... # type: Any