I am using Spyder 5.3.1 and Python 3.10.4 within a virtual environment, on Windows 10.
I know that with Python 3.10 came the match statement.
However, whenever I use the match keyword inside a script, the following error appears:
Code Analysis
Invalid syntax (pyflakes E)
But I can run the script correctly without any problem. So what can be the issue here?
Moreover, if I try directly in the IPython console, the match keyword is immediately recognized.