From f1a97218a85290dbfc23b8d89a43b4f23d8ffc1b Mon Sep 17 00:00:00 2001 From: Lars Rustand Date: Mon, 6 Jan 2025 19:32:31 +0100 Subject: [PATCH] Fix return type --- qutebrowser/utils/objreg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/objreg.py b/qutebrowser/utils/objreg.py index 7c561b139..98cbe9cb2 100644 --- a/qutebrowser/utils/objreg.py +++ b/qutebrowser/utils/objreg.py @@ -63,7 +63,7 @@ class WindowAccessHistory(): except ValueError: pass - def last(self) -> 'mainwindow.MainWindow': + def last(self) -> Optional['mainwindow.MainWindow']: """Return the last window from the access history. Prune any None values and windows that are shutting down and