Skip to content

Commit 2271fab

Browse files
Allow keyword arguments on codecs CodecInfo encode/decode callables
1 parent 036f24a commit 2271fab

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎stdlib/codecs.pyi‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ class _Stream(_WritableStream, _ReadableStream, Protocol): ...
9797

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

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

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

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

114114
@type_check_only
115115
class _IncrementalEncoder(Protocol):

0 commit comments

Comments
 (0)