Skip to content

Commit

Permalink
bpo-37134: Add PEP570 notation to the signature of byte{array}.transl…
Browse files Browse the repository at this point in the history
…ate (GH-13874)

(cherry picked from commit de76c07)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
  • Loading branch information
miss-islington and pablogsal committed Jun 6, 2019
1 parent 1c4084f commit dba4448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/stdtypes.rst
Expand Up @@ -2736,8 +2736,8 @@ arbitrary binary data.
The prefix(es) to search for may be any :term:`bytes-like object`.


.. method:: bytes.translate(table, delete=b'')
bytearray.translate(table, delete=b'')
.. method:: bytes.translate(table, /, delete=b'')
bytearray.translate(table, /, delete=b'')

Return a copy of the bytes or bytearray object where all bytes occurring in
the optional argument *delete* are removed, and the remaining bytes have
Expand Down

0 comments on commit dba4448

Please sign in to comment.