Skip to content

Commit 3e59231

Browse files
committed
make resolve_button non-public
1 parent dca2bad commit 3e59231

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ahk/_async/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
_PROPERTY_DEPRECATION_WARNING_MESSAGE = 'Use of the {0} property is not recommended (in the async API only) and may be removed in a future version. Use the get_{0} method instead'
100100

101101

102-
def resolve_button(button: Union[str, int]) -> str:
102+
def _resolve_button(button: Union[str, int]) -> str:
103103
"""
104104
Resolve a string of a button name to a canonical name used for AHK script
105105
:param button:
@@ -2498,7 +2498,7 @@ async def click(
24982498
assert x is not None and y is not None, 'If provided, position must be specified by x AND y'
24992499
if button is None:
25002500
button = 'L'
2501-
button = resolve_button(button)
2501+
button = _resolve_button(button)
25022502

25032503
if relative:
25042504
r = 'Rel'

ahk/_sync/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
_PROPERTY_DEPRECATION_WARNING_MESSAGE = 'Use of the {0} property is not recommended (in the async API only) and may be removed in a future version. Use the get_{0} method instead'
9696

9797

98-
def resolve_button(button: Union[str, int]) -> str:
98+
def _resolve_button(button: Union[str, int]) -> str:
9999
"""
100100
Resolve a string of a button name to a canonical name used for AHK script
101101
:param button:
@@ -2487,7 +2487,7 @@ def click(
24872487
assert x is not None and y is not None, 'If provided, position must be specified by x AND y'
24882488
if button is None:
24892489
button = 'L'
2490-
button = resolve_button(button)
2490+
button = _resolve_button(button)
24912491

24922492
if relative:
24932493
r = 'Rel'

0 commit comments

Comments
 (0)