For diamagnetic character, there should not be any unpaired electron in the molecules formation. Here, for H2 the number of unpaired electron is 0. But in all other case there's an unpaired electron. Let it be H2- ,H2+ or He2+ ; there's an unpaired electron i.e, they are paramagnetic.