This is a fairly common misconception.
The action functional $S$ eats a function $q$ and spits out the following number:
$$S[q] := \int_{t_1}^{t_2} L\big(q(t),\dot q(t), t\big)\ dt$$
where the Lagrangian $L: \mathbb R^3 \rightarrow \mathbb R$ is just a function of three variables. One might have, for example,
$$L(a,b,c) = \frac{1}{2} mb^2 - \frac{1}{2} m\omega^2 a^2$$
where $m$ and $\omega$ are constants. In that case, the action would be
$$S[q] := \int_{t_1}^{t_2} L\big(q(t),\dot q(t),t\big) = \int_{t_1}^{t_2} \left(\frac{1}{2}m \dot q^2(t) - \frac{1}{2}m\omega^2 q^2(t) \right) dt$$
Given some $(a,b,c)$, we can linearize the Lagrangian to find its value at a nearby point $(a+\delta a,b+\delta b,c+\delta c)$:
$$L(a+\delta a,b+\delta b,c+\delta c) = L(a,b,c) + \left[ \big(\partial_1L\big)\cdot \delta a+ \big(\partial_2L\big)\cdot \delta b +\big(\partial_3L\big)\cdot \delta c\right]$$
where $\partial_nL$ is the derivative of $L$ with respect to its $n^{th}$ slot. Therefore, if we add a small $\eta$ to $q$, we get
$$S[q+\eta]=\int_{t_1}^{t_2} L\big(q(t)+\eta(t),\dot q(t) + \dot \eta(t),t\big) \ dt $$
$$\simeq \int_{t_1}^{t_2} L\big(q(t),\dot q(t),t\big)\ dt + \int_{t_1}^{t_2} \big[(\partial_1 L) \eta(t) + (\partial_2 L) \dot \eta(t) \big] dt$$
Integration by parts then gives
$$S[q+\eta]-S[q]\simeq \int_{t_1}^{t_2} \big[(\partial_1 L) - \frac{d}{dt}(\partial_2 L)\big]\eta \ dt$$
where we've used the fact that $\eta(t_1)=\eta(t_2)=0$. If we demand that this vanish for arbitrary (differentiable) $\eta$, we must have that
$$\frac{d}{dt}\left[\bigg(\partial_2 L\bigg)\big(q(t),\dot q(t),t\big)\right] = \bigg(\partial_1 L\bigg)\big(q(t),\dot q(t),t\big)$$
Notation being what it is, it is standard to say something like
$$L(x,v,t) = \frac{1}{2}m v^2 + \frac{1}{2}m\omega^2x^2$$
$$\frac{\partial L}{\partial x} = m\omega^2 x$$
$$\frac{\partial L}{\partial v} = mv$$
But this is a bit misleading. What we've written as $\frac{\partial L}{\partial x}$ is really the derivative of $L$ with respect to its first slot, evaluated at the point $(x,v,t)$. The same is true when we write $L = L(q,\dot q,t)$; the fact that $q$ and $\dot q$ are related to each other by differentiation is irrelvant, because $q(t)$ and $\dot q(t)$ are the values (not functions!) we plug in to the first and second slots after we take the partial derivative of $L$.
I have an equation $L=x+\dot x+\ddot x$. What is the partial derivative of this with respect to $\dot x$?
$L$ is a function, not a functional; it doesn't know how to take derivatives. It is a map which eats numerical values and spits out a numerical value. The only way to have a Lagrangian like that is to define $L(a,b,c)=a+b+c$, and then plug $x$ into the first slot, $\dot x$ into the second slot, and $\ddot x$ into the third slot$^\dagger$. If you do this, then $\big(\partial_2 L\big)(x,\dot x,\ddot x)$, which we we would usually write as $\frac{\partial L}{\partial \dot x}$ in an abuse of notation, would be equal to $1$.
$^\dagger$ Note that an action functional which involves second derivatives is mathematically problematic under most circumstances.