File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ def update_app():
250250 try :
251251 # Check for updates from GitHub releases
252252 # Point to the latest release download URL
253- manager = velopack .UpdateManager ("https://github.com/kelltom/ChiselPDF/releases/latest/download/" )
253+ manager = velopack .UpdateManager ("https://github.com/kelltom/ChiselPDF/releases/latest/download/" ) # type: ignore[attr-defined]
254254 update_info = manager .check_for_updates ()
255255
256256 if not update_info :
@@ -378,9 +378,11 @@ def init_ui(self):
378378 def _create_menu_bar (self ):
379379 """Create the application menu bar."""
380380 menubar = self .menuBar ()
381+ assert menubar is not None # menuBar() always returns QMenuBar in QMainWindow
381382
382383 # Help menu
383384 help_menu = menubar .addMenu ("Help" )
385+ assert help_menu is not None # addMenu() always returns QMenu when called with string
384386
385387 # Check for Updates action
386388 update_action = QAction ("Check for Updates" , self )
@@ -608,7 +610,7 @@ def _ensure_output_path(self):
608610
609611if __name__ == "__main__" :
610612 # Velopack needs to run first - it may quit/restart the process
611- velopack .App ().run ()
613+ velopack .App ().run () # type: ignore[attr-defined]
612614
613615 app = QApplication (sys .argv )
614616 window = PDFPageSelectorApp ()
You can’t perform that action at this time.
0 commit comments