fixing template typehints