From my textbook, it is stated that:
e.g. If we add a basic salt $\ce{NaF}$, it will fully dissociate to give $\ce{F-}$. Then if we add $\ce{HF}$, since it is a weak acid, the high concentration of $\ce{F-}$ already present in solution shifts the equilibrium to the left, hence fewer $\ce{H+}$ forms than expected so higher $\mathrm{pH}$.
But can I explain like this: after dissociation of $\ce{NaF}$, the formed $\ce{F-}$ reacts with water to give $\ce{OH-}$ as the following equation: $$\ce{F- + H2O <=> HF + OH-}$$. Due to the presence of $\ce{OH-}$, upon addition of $\ce{HF}$, the $\mathrm{pH}$ will be higher than expected. Are there any flaws in this explanation?