Replace 'Text' with 'str' in py3 stdlib (#5466)

This commit is contained in:
Sebastian Rittau authored and GitHub committed 2021-05-16 07:10:48 -07:00
1 parent dbe77b6ae9
commit 6a9c89e928
49 files changed
+328 -349

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
from typing import Any, Iterable, Iterator, List, Optional, Protocol, Text, Type, Union
from typing import Any, Iterable, Iterator, List, Optional, Protocol, Type, Union
QUOTE_ALL: int
QUOTE_MINIMAL: int
@@ -34,7 +34,7 @@ class _Writer(Protocol):
def write(self, s: str) -> Any: ...
def writer(csvfile: _Writer, dialect: _DialectLike = ..., **fmtparams: Any) -> _writer: ...
def reader(csvfile: Iterable[Text], dialect: _DialectLike = ..., **fmtparams: Any) -> _reader: ...
def reader(csvfile: Iterable[str], dialect: _DialectLike = ..., **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: ...