Incorrect PyCharm correction when importing py script

I have a project, it has several folders and one of them contains two py script and In I import everything from "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.

Comment actions Permalink


Try marking the parent folder as Source in [project structure](

Comment actions Permalink

Thank you. It helped


Please sign in to leave a comment.