Change `Analysis.type` to `.type_`