I am trying to import a class from a separate file into one of my modules. I have two files sampleModule and classB both in the same folder. Inside classB I have:
class CLASSB(object):
def __init__(self, x):
self.x = x
Inside sampleModule, I have:
from classB import CLASSB
But in sampleModule I get this error:
Unresolved import: CLASSB
Unused import: CLASSB
I also have an _init_.py in the same folder
How do I fix this issue?
EDIT: Computer restart fixed issue.