bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)

(cherry picked from commit de76c07a8c)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-06-06 16:44:50 -07:00 committed by GitHub
parent 1c4084f4c1
commit dba4448c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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