Fix compilation failure due to missing type annotation.