Facing issues with type hints

In my local everything is working fine but in pythonanywhere i am getting these error for below code.

def place_order(self, orders: Order | list[Order]):

unsupported operand type(s) for |: 'type'

Which Python version are you using on PA? | as equivalent of Optional in type hints was introduced in 3.10, see this.

oh ok got it Thanks