From 0c1babd2887f36a7493b9eb227fc998a5e651e95 Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Wed, 27 May 2020 13:36:41 -0400 Subject: [PATCH] Make _codecs pass stubtest on windows (#4107) --- stdlib/2and3/_codecs.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/2and3/_codecs.pyi b/stdlib/2and3/_codecs.pyi index db622746d..236b06718 100644 --- a/stdlib/2and3/_codecs.pyi +++ b/stdlib/2and3/_codecs.pyi @@ -68,9 +68,9 @@ def utf_8_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int if sys.platform == 'win32': def mbcs_decode(__data: _Decodable, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ... - def mbcs_encode(str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ... + def mbcs_encode(__str: _Encodable, __errors: _Errors = ...) -> Tuple[bytes, int]: ... if sys.version_info >= (3, 0): def oem_decode(__data: bytes, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ... - def code_page_decode(codepage: int, __data: bytes, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ... - def oem_encode(str: Text, __errors: _Errors = ...) -> Tuple[bytes, int]: ... - def code_page_encode(code_page: int, str: Text, __errors: _Errors = ...) -> Tuple[bytes, int]: ... + def code_page_decode(__codepage: int, __data: bytes, __errors: _Errors = ..., __final: int = ...) -> Tuple[Text, int]: ... + def oem_encode(__str: Text, __errors: _Errors = ...) -> Tuple[bytes, int]: ... + def code_page_encode(__code_page: int, __str: Text, __errors: _Errors = ...) -> Tuple[bytes, int]: ...