There is no dedicated literal syntax for bytearray objects, instead they are always created by calling the constructor:
class bytearray([source[, encoding[, errors]]])
>>> bytearray.fromhex('2Ef0 F1f2 ')
bytearray(b'.\xf0\xf1\xf2')
>>> bytearray(b'\xf0\xf1\xf2').hex()
'f0f1f2'