]> granicus.if.org Git - python/commitdiff
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
authorPablo Galindo <Pablogsal@gmail.com>
Thu, 6 Jun 2019 23:38:41 +0000 (00:38 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Jun 2019 23:38:41 +0000 (00:38 +0100)
Doc/library/stdtypes.rst

index fcb0da74e158b09a8b49ee7cb28504d1f6a76043..35a17a18080996d718dd85fc077b586c70b9cd00 100644 (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