I would like to know how to solve this problem:
This throws error (GUI is not known at the point of processing gui : GUI):
class AppLogic():
    
    gui : GUI
    def __init__(self) -> None:
        self.gui = None
    def image_clicked(self):
        pass #not important
    
class GUI():
    app_logic : AppLogic
    
    def __init__(self) -> None:
        self.app_logic = None
        
    def render_image(self):
        pass #not important
app = AppLogic()
gui = GUI()
app.gui = gui
gui.app_logic = app
I can delete the explicit data type declaration, but at that moment, I will lose all the intellisense power when I would like to use hints while using the attribute gui or app_logic inside the class definition. Does it have any solution to make intellisense working in this situation?
 
    