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

This commit is contained in:
Sebastian Rittau
2021-05-16 16:10:48 +02:00
committed by GitHub
parent dbe77b6ae9
commit 6a9c89e928
49 changed files with 328 additions and 349 deletions

View File

@@ -1,7 +1,7 @@
import sys
from typing import IO, Any, BinaryIO, NamedTuple, NoReturn, Optional, Text, Union
from typing import IO, Any, BinaryIO, NamedTuple, NoReturn, Optional, Union
_File = Union[Text, IO[bytes]]
_File = Union[str, IO[bytes]]
class Error(Exception): ...