Typescript Get Type In Array Python Initialize