In PyCharm I created a text file named 'name_file'. But I wanted a python file. Then I renamed it as 'name_file.py'.
Now Pycharm see always it as text file.
Even with the py extension, the icon near the name file is a text file icon, not a python icon.
If I delete the file and I create it again it's the same. It's impossible to have a python file with this name : 'name_file.py'.
I have deleted the pycharm project configuration, and I import again the project in pycharm : it's the same think.
In Visual Studio Code, it's ok.
How to resolve this?
See you soon.