From ed69073a79c6bc756051ad3052c2890690dcacfd Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Mon, 11 Aug 2025 11:35:01 +0100 Subject: [PATCH] fix(pilot): fix missing return in double/triple click methods Fix missing return statement in the double/triple click methods, which are documented to return a boolean indicating whether the widget was in fact clicked. --- src/textual/pilot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual/pilot.py b/src/textual/pilot.py index a9ff1d2067..73cff9413a 100644 --- a/src/textual/pilot.py +++ b/src/textual/pilot.py @@ -287,7 +287,7 @@ async def double_click( True if no selector was specified or if the clicks landed on the selected widget, False otherwise. """ - await self.click(widget, offset, shift, meta, control, times=2) + return await self.click(widget, offset, shift, meta, control, times=2) async def triple_click( self, @@ -332,7 +332,7 @@ async def triple_click( True if no selector was specified or if the clicks landed on the selected widget, False otherwise. """ - await self.click(widget, offset, shift, meta, control, times=3) + return await self.click(widget, offset, shift, meta, control, times=3) async def hover( self,