Skip to content

Commit 2f3f8da

Browse files
msvcrt: improve bytes handling (#9071)
1 parent 4363107 commit 2f3f8da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/msvcrt.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ if sys.platform == "win32":
2121
def getwch() -> str: ...
2222
def getche() -> bytes: ...
2323
def getwche() -> str: ...
24-
def putch(__char: bytes) -> None: ...
24+
def putch(__char: bytes | bytearray) -> None: ...
2525
def putwch(__unicode_char: str) -> None: ...
26-
def ungetch(__char: bytes) -> None: ...
26+
def ungetch(__char: bytes | bytearray) -> None: ...
2727
def ungetwch(__unicode_char: str) -> None: ...
2828
def heapmin() -> None: ...

0 commit comments

Comments
 (0)