This problem has been driving me nuts. I am trying to import a class from a file in the same directory. PyCharm is giving me the \"Unresolved reference\" error. MyClas
MyClas
If MyClass is defined in pack/file.py, you need to import it as:
MyClass
pack/file.py
from pack.file import MyClass
Note that using names of Python built-in types (such as file) for your own modules is a bad idea.
file