A Vietoris theorem in shape theory