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,5 +1,4 @@
import sys
from typing import Text
# This module is only available on Windows
if sys.platform == "win32":
@@ -14,11 +13,11 @@ if sys.platform == "win32":
def get_osfhandle(__fd: int) -> int: ...
def kbhit() -> bool: ...
def getch() -> bytes: ...
def getwch() -> Text: ...
def getwch() -> str: ...
def getche() -> bytes: ...
def getwche() -> Text: ...
def getwche() -> str: ...
def putch(__char: bytes) -> None: ...
def putwch(__unicode_char: Text) -> None: ...
def putwch(__unicode_char: str) -> None: ...
def ungetch(__char: bytes) -> None: ...
def ungetwch(__unicode_char: Text) -> None: ...
def ungetwch(__unicode_char: str) -> None: ...
def heapmin() -> None: ...