Fix typing mistake

View type is passed via format variable, not via type variable