Skip to content

Commit

Permalink
Merge pull request #362 from spyoungtech/gh-361
Browse files Browse the repository at this point in the history
gh-361 fix bug in show_tooltip that silently omitted `which` argument
  • Loading branch information
spyoungtech authored Jan 14, 2025
2 parents 044f3f1 + aee9299 commit a6e7a0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ahk/_async/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,7 @@ async def show_tooltip(
args.append(str(y))
else:
args.append('')
args.append(str(which))
await self._transport.function_call('AHKShowToolTip', args)

async def hide_tooltip(self, which: int = 1) -> None:
Expand Down
1 change: 1 addition & 0 deletions ahk/_sync/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,7 @@ def show_tooltip(
args.append(str(y))
else:
args.append('')
args.append(str(which))
self._transport.function_call('AHKShowToolTip', args)

def hide_tooltip(self, which: int = 1) -> None:
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ unasync
black
tokenize-rt
coverage
mypy
mypy==1.13.0
typing_extensions
jinja2
pytest-rerunfailures
Expand Down

0 comments on commit a6e7a0f

Please sign in to comment.