mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user