How to fix TypeError: unsupported operand type(s) for |: 'type' and 'type' (Union syntax requires Python 3.10+) in Python | DevErrors