The problem is with type hints. Stick to type hinting and syntax that works in 3.8: ✅ Use typing.List, typing.Dict, typing.Optional, etc. 🚫 Avoid list[str], int | None