Just explicitly specify the type.
switch_window: 'pyqtSignal' = QtCore.pyqtSignal()
All other methods are a crutch!