Incorrect PyCharm correction when importing py script
I have a project, it has several folders and one of them contains two py script script_a.py and script_b.py. In script_a.py I import everything from script_b.py: "from script_b import *". Then when I use a function from script_b in script_a, PyCharm underlines this function and my import with error: "unresolved reference", although the script works fine. How do I fix it? Also, it's very annoying because sometimes PyCharm sometime focuses on these errors when I'm writing something else, so I need manually press Esc to ignore it.
Please sign in to leave a comment.
Hi,
Try marking the parent folder as Source in [project structure](https://www.jetbrains.com/help/pycharm/project-structure-dialog.html#2f736)
Thank you. It helped