diff --git a/ahk/_async/engine.py b/ahk/_async/engine.py index 15fbad1..0713787 100644 --- a/ahk/_async/engine.py +++ b/ahk/_async/engine.py @@ -2923,61 +2923,16 @@ async def image_search( resp = await self._transport.function_call('AHKImageSearch', args, blocking=blocking) return resp + # fmt: off @overload - async def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - ) -> None: ... + async def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None) -> None: ... @overload - async def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - blocking: Literal[False], - ) -> AsyncFutureResult[None]: ... + async def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None, blocking: Literal[False]) -> AsyncFutureResult[None]: ... @overload - async def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - blocking: Literal[True], - ) -> None: ... + async def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None, blocking: Literal[True]) -> None: ... @overload - async def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - blocking: bool = True, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - ) -> Union[None, AsyncFutureResult[None]]: ... + async def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, blocking: bool = True, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None) -> Union[None, AsyncFutureResult[None]]: ... + # fmt: on async def mouse_drag( self, x: int, diff --git a/ahk/_sync/engine.py b/ahk/_sync/engine.py index 38ec383..af5f0fc 100644 --- a/ahk/_sync/engine.py +++ b/ahk/_sync/engine.py @@ -2911,61 +2911,16 @@ def image_search( resp = self._transport.function_call('AHKImageSearch', args, blocking=blocking) return resp + # fmt: off @overload - def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - ) -> None: ... + def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None) -> None: ... @overload - def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - blocking: Literal[False], - ) -> FutureResult[None]: ... + def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None, blocking: Literal[False]) -> FutureResult[None]: ... @overload - def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - blocking: Literal[True], - ) -> None: ... + def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None, blocking: Literal[True]) -> None: ... @overload - def mouse_drag( - self, - x: int, - y: int, - *, - from_position: Optional[Tuple[int, int]] = None, - speed: Optional[int] = None, - button: Optional[Union[MouseButton, str]] = None, - relative: Optional[bool] = None, - blocking: bool = True, - coord_mode: Optional[CoordModeRelativeTo] = None, - send_mode: Optional[SendMode] = None, - ) -> Union[None, FutureResult[None]]: ... + def mouse_drag(self, x: int, y: int, *, from_position: Optional[Tuple[int, int]] = None, speed: Optional[int] = None, button: Optional[Union[MouseButton, str]] = None, relative: Optional[bool] = None, blocking: bool = True, coord_mode: Optional[CoordModeRelativeTo] = None, send_mode: Optional[SendMode] = None) -> Union[None, FutureResult[None]]: ... + # fmt: on def mouse_drag( self, x: int,