I have a package as follows:
mypackage/
__init__.py
mod1.py
mod2.py
Inside mod1.py I have a definition called calculate(). Now I am writing this code in __init__.py from mod1 import calculate
But everytime I write this code I am getting an error saying
unresolved import calculate.
I am not able to understand why I am getting this error.