typing: warn `useless-type` for useless type in a local variable