From 1b37ca4297b0f0b6362b68ed37c88a6e6c5f1d8d Mon Sep 17 00:00:00 2001 From: Siva Chandra Date: Fri, 5 Oct 2018 13:10:41 -0700 Subject: [PATCH] Make csv.reader take Iterator[Text] argument instead of Iterator[str]. (#2508) --- stdlib/2and3/_csv.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/_csv.pyi b/stdlib/2and3/_csv.pyi index 9f6a9e86e..ff7111a87 100644 --- a/stdlib/2and3/_csv.pyi +++ b/stdlib/2and3/_csv.pyi @@ -1,6 +1,6 @@ import sys -from typing import Any, Iterable, Iterator, List, Optional, Sequence +from typing import Any, Iterable, Iterator, List, Optional, Sequence, Text QUOTE_ALL = ... # type: int QUOTE_MINIMAL = ... # type: int @@ -41,7 +41,7 @@ class _writer: # TODO: precise type def writer(csvfile: Any, dialect: Any = ..., **fmtparams: Any) -> _writer: ... -def reader(csvfile: Iterable[str], dialect: Any = ..., **fmtparams: Any) -> _reader: ... +def reader(csvfile: Iterable[Text], dialect: Any = ..., **fmtparams: Any) -> _reader: ... def register_dialect(name: str, dialect: Any = ..., **fmtparams: Any) -> None: ... def unregister_dialect(name: str) -> None: ... def get_dialect(name: str) -> Dialect: ...