In our lecture, we had for the Lagrange density of the $\gamma$ and the $Z^{0}$ boson: $$\mathcal L = -\sum_{\psi = e_{L}, e_{R}, \nu_{L}, \nu_{R}}\bar{\psi}\gamma^{\mu}\left( gT^{3}W_{\mu}^{3} + g'\frac{Y}{2}B_{\mu} \right)\psi.$$ We then introduced the mixing: $$\begin{pmatrix} W_{\mu}^{3} \\ B_{\mu} \end{pmatrix} = \begin{pmatrix} \cos\theta_{W} & \sin\theta_{W} \\ -\sin\theta_{W} & \cos\theta_{W}\end{pmatrix}\begin{pmatrix} Z_{\mu} \\ A_{\mu}\end{pmatrix}\qquad (1.1)$$
And then we wrote: $$ \mathcal L = -\left(\sum_{\psi = e_{L}, e_{R}, \nu_{L}, \nu_{R}}\bar{\psi}\gamma^{\mu}\left( g\sin\theta_{W}I_3 + g'\cos\theta_{W}\frac{Y}{2}\right)A_{\mu}\psi + \bar{\psi}\gamma^{\mu}\left( g\cos\theta_{W}I_3 - g'\sin\theta_{W}\frac{Y}{2} \right)Z_{\mu}\psi \right) \qquad (1.2)$$
Unfortunately, I am not sure how the weak isospin $I_3$ enters in $(1.2)$ if we start from $(1.1)$, as $T^{3} = \frac{1}{2}\sigma^{3}$ is a Pauli-matrix..