The function is not defined for $x = 1$. In addition, no sign changes around $x = +1$ and $x = -1$ so the denominator grows quickly. So when $x \rightarrow 1$ the limit does not exist.
So we can calculate separately
$\lim _{x\to \:-1} \frac{2-x}{\left(x-1\right)^2} = \lim _{x\to \:-1}\left(\left(2-x\right)\frac{1}{\left(x-1\right)^2}\right) \lim _{x\to \:-1}\left(2-x\right)\cdot \lim _{x\to \:-1}\left(\frac{1}{\left(x-1\right)^2}\right)$
And the denominator grows without quota . You can use the same reasoning for growth from the right.
$\lim _{x\to \:+1}\left(\frac{2-x}{\left(x-1\right)^2}\right) = \lim _{x\to \:+1}\left(\left(2-x\right)\frac{1}{\left(x-1\right)^2}\right) = \:\lim _{x\to \:+1-+}\left(2-x\right)\:\: \cdot \:\: \lim _{x\to \:+1}\left(\frac{1}{\left(x-1\right)^2}\right)$
In the right part of the multiplication we get $2-1 = 1$.
And on the othe for x approaching 1 from the right, denominator is a positive value that approaches 0 and $\lim _{x\to \:1+}\left(\frac{1}{\left(x-1\right)^2}\right) =\infty \:$