This is the content of test.py
def main(ccfg):
print(ccfg.param)
This is the content of main.py:
import test
import cfg
ccfg = cfg.cfg()
test.main(ccfg)
cfg.py contains a config-class:
class cfg:
def __init__(self):
pass
param = 5
When writing the code in test.py, Pycharm (or any other IDE) does not recognize that ccfg is an instance of cfg. How can I make the class known to the IDE so that I get the code suggestions?