The doc of [bytes.maketrans()](https://docs.python.org/3/library/stdtypes.html#bytes.maketrans) and [bytearray.maketrans()](https://docs.python.org/3/library/stdtypes.html#bytearray.maketrans) says only `bytes.translate()` as shown below even though `bytearray.translate()` also works: > This static method returns a translation table usable for `bytes.translate()` that will map each character ... So, the doc of `bytes.maketrans()` and `bytearray.maketrans()` should also say `bytearray.translate()` as shown below: > This static method returns a translation table usable for `bytes.translate()` and `bytearray.translate()` that will map each character ...