Thouless pumping and topology