Make mypy happy

This commit is contained in:
Kovid Goyal
2025-07-23 09:46:32 +05:30
parent 57bfa9e2e5
commit 85b6ba54dc

View File

@@ -1007,11 +1007,12 @@ class TabManager: # {{{
def mark_tab_bar_dirty(self) -> None:
if self.tab_bar_should_be_visible and not self.tab_bar_hidden:
mark_tab_bar_dirty(self.os_window_id)
boss = get_boss()
w = self.active_window
data = {'tab_manager': self}
for watcher in global_watchers().on_tab_bar_dirty:
watcher(boss, w, data)
if w is not None:
data = {'tab_manager': self}
boss = get_boss()
for watcher in global_watchers().on_tab_bar_dirty:
watcher(boss, w, data)
def update_tab_bar_data(self) -> None:
self.tab_bar.update(self.tab_bar_data)