Although I use Python 3.11, still PyCharm shows these warning messages:
Python version 2.7 does not support a 'F' prefix
and:
Python version 2.7 does not support variable annotations
I tried to reinstall it but still the same problem. I checked the interpreter. It is Python 3.11.
OS is Windows 11 and PyCharm in latest version. I am using downgraded versions of pip, but I don't think this is the reason.
I searched online but can't find the solution online.
How can I avoid those warnings?
Go to Settings > Editor > Inspections. There, in Python > Code compatibility inspections, you should see that Python 3.5's box is ticked in.(just tick the 3.6 as well)
This allows you to choose for which versions of Python your code will be inspected.
Note: this answer is originally by @Eskapps

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With