Add _is_text_encoding attribute of CodecInfo (3.4+) (#10354)

Introduced in https://bugs.python.org/issue19619. Was meant to be a temporary private API, but no public API has emerged in the years since.
This commit is contained in:
Anthony Sottile
2023-06-23 10:35:33 -04:00
committed by GitHub
parent b10f482e36
commit c1df736a8c

View File

@@ -96,6 +96,7 @@ class _IncrementalDecoder(Protocol):
def __call__(self, errors: str = ...) -> IncrementalDecoder: ...
class CodecInfo(tuple[_Encoder, _Decoder, _StreamReader, _StreamWriter]):
_is_text_encoding: bool
@property
def encode(self) -> _Encoder: ...
@property