8000 bpo-37134: Add PEP570 notation to the signature of byte{array}.transl… · python/cpython@de76c07 · GitHub
[go: up one dir, main page]

Skip to content

Commit de76c07

Browse files
authored
bpo-37134: Add PEP570 notation to the signature of byte{array}.translate (GH-13874)
1 parent dc24765 commit de76c07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,8 +2736,8 @@ arbitrary binary data.
27362736
The prefix(es) to search for may be any :term:`bytes-like object`.
27372737

27382738

2739-
.. method:: bytes.translate(table, delete=b'')
2740-
bytearray.translate(table, delete=b'')
2739+
.. method:: bytes.translate(table, /, delete=b'')
2740+
bytearray.translate(table, /, delete=b'')
27412741

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

0 commit comments

Comments
 (0)
0