Thomae's Function, defined by $$T(x) = \begin{cases} \dfrac{1}{q} & \text{$x = \dfrac{p}{q}$, where $p,q\in\mathbb{Z}$ and $\gcd(p,q) = 1$, and} \\[1ex] 0 & \text{otherwise}. \end{cases} $$ is known to be continuous at irrationals and discontinuous at rationals. I used the following definition to prove discontinuity at rationals:
A function $f\colon \mathbb{R}\rightarrow \mathbb{R}$ is said to be continuous at $a\in\mathbb{R}$ if given any open subset $V$ containing $f(a)$, there exists an open subset $U$ containing $a$ such that $f(U)\subseteq V$.
Question: How can we prove the continuity of Thomae's function at irrationals by this definition?