Add typing for comprehension (fixes breakage on 0.4)