Skip to content

Commit 32e8256

Browse files
committed
Name changes
1 parent 2a84b36 commit 32e8256

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

shiny/playwright/controller/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def expect_label(
337337
playwright_expect(self.loc_label).to_have_text(value, timeout=timeout)
338338

339339

340-
class WidthLocStlyeM:
340+
class WidthLocStyleM:
341341
"""
342342
A mixin class that provides methods to control the width of input action buttons and action links.
343343

shiny/playwright/controller/_file.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
from playwright.sync_api import expect as playwright_expect
55

66
from .._types import PatternOrStr, Timeout
7-
from ._base import InputActionBase, WidthLocStlyeM
7+
from ._base import InputActionBase, WidthLocStyleM
88

99

10-
class _DownloadMixin(WidthLocStlyeM, InputActionBase):
10+
class _DownloadBase(
11+
WidthLocStyleM,
12+
InputActionBase,
13+
):
1114
"""Mixin for download controls."""
1215

1316
def __init__(self, page: Page, id: str, *, loc_suffix: str) -> None:
@@ -28,7 +31,7 @@ def expect_label(
2831
playwright_expect(self.loc).to_have_text(value, timeout=timeout)
2932

3033

31-
class DownloadLink(_DownloadMixin):
34+
class DownloadLink(_DownloadBase):
3235
"""
3336
Controller for :func:`shiny.ui.download_link`.
3437
"""
@@ -47,7 +50,7 @@ def __init__(self, page: Page, id: str) -> None:
4750
super().__init__(page, id=id, loc_suffix=":not(.btn)")
4851

4952

50-
class DownloadButton(_DownloadMixin):
53+
class DownloadButton(_DownloadBase):
5154
"""
5255
Controller for :func:`shiny.ui.download_button`
5356
"""

shiny/playwright/controller/_input_buttons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
InputActionBase,
1919
UiBase,
2020
UiWithLabel,
21-
WidthLocStlyeM,
21+
WidthLocStyleM,
2222
_expect_multiple,
2323
)
2424

2525

2626
class InputActionButton(
27-
WidthLocStlyeM,
27+
WidthLocStyleM,
2828
InputActionBase,
2929
):
3030
"""Controller for :func:`shiny.ui.input_action_button`."""
@@ -192,7 +192,7 @@ def expect_attribute(self, value: str, *, timeout: Timeout = None):
192192

193193

194194
class InputTaskButton(
195-
WidthLocStlyeM,
195+
WidthLocStyleM,
196196
InputActionBase,
197197
):
198198
"""Controller for :func:`shiny.ui.input_task_button`."""

0 commit comments

Comments
 (0)