Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions stdlib/codecs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ class _Stream(_WritableStream, _ReadableStream, Protocol): ...

@type_check_only
class _Encoder(Protocol):
def __call__(self, input: str, errors: str = ..., /) -> tuple[bytes, int]: ... # signature of Codec().encode
def __call__(self, input: str, errors: str = ...) -> tuple[bytes, int]: ... # signature of Codec().encode

@type_check_only
class _Decoder(Protocol):
def __call__(self, input: ReadableBuffer, errors: str = ..., /) -> tuple[str, int]: ... # signature of Codec().decode
def __call__(self, input: ReadableBuffer, errors: str = ...) -> tuple[str, int]: ... # signature of Codec().decode

@type_check_only
class _StreamReader(Protocol):
def __call__(self, stream: _ReadableStream, errors: str = ..., /) -> StreamReader: ...
def __call__(self, stream: _ReadableStream, errors: str = ...) -> StreamReader: ...

@type_check_only
class _StreamWriter(Protocol):
def __call__(self, stream: _WritableStream, errors: str = ..., /) -> StreamWriter: ...
def __call__(self, stream: _WritableStream, errors: str = ...) -> StreamWriter: ...

@type_check_only
class _IncrementalEncoder(Protocol):
Expand Down
Loading