I have the following bit of code in Python:
sys.path.append(os.path.join(sys.path, "..", "..", "getdsip"))
from getdsip import GetDSIP
print("ERROR: cannot load GetDSIP")
is not visible by the interpreter before runtime it gets tagged as an unknown module by PyCharm. Is there a way to "hint" the IDE that this module does indeed exist and therefore no warning should be issued?
This question could be extended: if the import
statement was from getdsip import *
then any class name would be unknown to the IDE (and it would be good to be able to "hint" it as per above)