Skip to content

Commit 5dc89fe

Browse files
authored
Add undocumented methods codecs.utf_16_be_{decode,encode}. (#3091)
I found the signatures here: https://github.com/python/cpython/blob/6a16b18224fa98f6d192aa5014affeccc0376eb3/Modules/_codecsmodule.c#L729 google/pytype#348 was opened against pytype about utf_16_be_encode being missing.
1 parent 7e9e91c commit 5dc89fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/2and3/codecs.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class _IncrementalDecoder(Protocol):
3131
def encode(obj: _Decoded, encoding: str = ..., errors: str = ...) -> _Encoded: ...
3232
def decode(obj: _Encoded, encoding: str = ..., errors: str = ...) -> _Decoded: ...
3333
def lookup(encoding: str) -> CodecInfo: ...
34+
def utf_16_be_decode(__obj: _Encoded, __errors: str = ..., __final: bool = ...) -> Tuple[_Decoded, int]: ... # undocumented
35+
def utf_16_be_encode(__obj: _Decoded, __errors: str = ...) -> Tuple[_Encoded, int]: ... # undocumented
3436

3537
class CodecInfo(Tuple[_Encoder, _Decoder, _StreamReader, _StreamWriter]):
3638
@property

0 commit comments

Comments
 (0)