autoformat

This commit is contained in:
Kovid Goyal 2026-09-26 15:51:14 +05:30
parent d63d7ef643
commit 409fd06cc3
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 17 additions and 4 deletions

View file

@ -1323,6 +1323,7 @@ class TabBeingDropped(NamedTuple):
class DragHover(NamedTuple):
"A tab to be switched to once the pointer has rested on it for a while during a drag"
tab_id: int
source_id: int # The id of the window or tab being dragged
source_is_window: bool

View file

@ -351,8 +351,14 @@ class TestTabInsertionPreview(BaseTest):
resize=Mock(),
)
tm.bind(
'tab_for_id', 'on_tab_drop_move', 'on_tab_drop', 'apply_tab_ordering', '_set_drag_target_tab',
'_cancel_drag_hover', '_update_drag_hover', '_activate_drag_hover',
'tab_for_id',
'on_tab_drop_move',
'on_tab_drop',
'apply_tab_ordering',
'_set_drag_target_tab',
'_cancel_drag_hover',
'_update_drag_hover',
'_activate_drag_hover',
)
def move(tab, os_window_id):
@ -548,8 +554,14 @@ class TestWindowDropTabs(BaseTest):
_clear_force_show_title_bars=Mock(),
)
tm.bind(
'tab_for_id', '_set_drag_target_tab', '_cancel_drag_hover', '_activate_drag_hover', '_update_drag_hover',
'_set_window_drop_tab_target', 'apply_tab_ordering', '_insert_window_as_tab',
'tab_for_id',
'_set_drag_target_tab',
'_cancel_drag_hover',
'_activate_drag_hover',
'_update_drag_hover',
'_set_window_drop_tab_target',
'apply_tab_ordering',
'_insert_window_as_tab',
)
self.clock = self.enterContext(patch('kitty.tabs.monotonic', return_value=10.0))
self.drag = self.enterContext(patch('kitty.tabs.get_window_being_dragged', return_value=(10, True, 0, 0)))