A non-commutative Pettis theorem