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: ...