Skip to content

Commit 4e0c5bc

Browse files
committed
Mark Codec.{encode,decode} to take positional-only args
1 parent 9ced5c4 commit 4e0c5bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/codecs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ function interfaces of the stateless encoder and decoder:
548548

549549
.. class:: Codec
550550

551-
.. method:: encode(input, errors='strict')
551+
.. method:: encode(input, errors='strict', /)
552552

553553
Encodes the object *input* and returns a tuple (output object, length consumed).
554554
For instance, :term:`text encoding` converts
@@ -566,7 +566,7 @@ function interfaces of the stateless encoder and decoder:
566566
of the output object type in this situation.
567567

568568

569-
.. method:: decode(input, errors='strict')
569+
.. method:: decode(input, errors='strict', /)
570570

571571
Decodes the object *input* and returns a tuple (output object, length
572572
consumed). For instance, for a :term:`text encoding`, decoding converts

0 commit comments

Comments
 (0)