I had a similar problem, I'm on python 3.13 which I think helped but I ended up using string annotations. I think there's issues with 3.8 type hinting.