Fix minor type error in case peft library isn't present