'Python match pattern command not working on Python 3.10.4

I have been working with match pattern for a while now and suddenly the terminal prompt told me this:

Traceback (most recent call last):
  File "/Users/michy/se-app/excel.py", line 5, in <module>
    from core.excel import ExcelImmobiliare
  File "/Users/michy/se-app/core/excel.py", line 557
    match valore:
          ^
SyntaxError: invalid syntax

I updated Python again, it said it was up to date. I removed it and reinstalled it, still got the error.

I cancelled and recloned my repository, nothing.

I even tried reinstalling Visual Studio Code from scratch and I still get the problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source