mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-06 23:24:25 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user