Make mypy happy

This commit is contained in:
Kovid Goyal 2025-07-23 09:46:32 +05:30
parent 57bfa9e2e5
commit 85b6ba54dc
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1007,11 +1007,12 @@ def tabbar_visibility_changed(self) -> None:
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)