Skip to content

Commit 46eeb85

Browse files
committed
black formatting
1 parent 01d2047 commit 46eeb85

File tree

8 files changed

+14
-22
lines changed

8 files changed

+14
-22
lines changed

chartlets.py/chartlets/components/button.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class Button(Component):
3232
"""Tooltip title. Optional."""
3333

3434

35-
3635
@dataclass(frozen=True)
3736
class IconButton(Component):
3837
"""Icon buttons are commonly found in app bars and toolbars.
@@ -57,4 +56,3 @@ class IconButton(Component):
5756

5857
tooltip: str | None = None
5958
"""Tooltip title. Optional."""
60-

chartlets.py/chartlets/components/checkbox.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ class Checkbox(Component):
1616

1717
tooltip: str | None = None
1818
"""Tooltip title. Optional."""
19-

chartlets.py/chartlets/components/select.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ class Select(Component):
2020

2121
tooltip: str | None = None
2222
"""Tooltip title. Optional."""
23-

chartlets.py/chartlets/components/slider.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ class Slider(Component):
4545
max: int | None = None
4646
"""The maximum allowed value of the slider. Should not be equal to min."""
4747

48-
marks: (bool |
49-
list[TypedDict("marks", {"value": int, "label": str})] |
50-
None) = None
48+
marks: bool | list[TypedDict("marks", {"value": int, "label": str})] | None = None
5149
"""Marks indicate predetermined values to which the user can move the
5250
slider. If true the marks are spaced according the value of the step
5351
prop. If an array, it should contain objects with value and an optional
@@ -73,21 +71,21 @@ class Slider(Component):
7371
track: Literal["inverted", "normal"] | False | None = None
7472
"""The track presentation:
7573
76-
`normal`: the track will render a bar representing the slider value.
77-
`inverted`: the track will render a bar representing the remaining slider
78-
value.
79-
`false`: the track will render without a bar.
74+
- `normal`: the track will render a bar representing the slider value.
75+
- `inverted`: the track will render a bar representing the remaining slider
76+
value.
77+
- `false`: the track will render without a bar.
8078
"""
8179

8280
value: list[int] | int | None = None
8381
"""The value of the slider. For ranged sliders, provide an array with two
8482
values.
8583
"""
8684

87-
valueLabelDisplay: Literal['auto', 'on', 'off'] | None = None
85+
valueLabelDisplay: Literal["auto", "on", "off"] | None = None
8886
"""Controls when the value label is displayed:
8987
90-
`auto` the value label will display when the thumb is hovered or focused.
91-
`on` will display persistently.
92-
`off` will never display.
88+
- `auto` the value label will display when the thumb is hovered or focused.
89+
- `on` will display persistently.
90+
- `off` will never display.
9391
"""

chartlets.py/chartlets/controllers/callback.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
from ._helpers import get_contribution
77

88

9-
def get_callback_results(
10-
ext_ctx: ExtensionContext, data: dict[str, Any]
11-
) -> Response:
9+
def get_callback_results(ext_ctx: ExtensionContext, data: dict[str, Any]) -> Response:
1210
"""Generate the response for the endpoint `POST /chartlets/callback`.
1311
1412
Args:

chartlets.py/demo/my_extension/my_panel_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def render_panel(ctx: Context) -> Component:
2222
label="Dataset",
2323
options=[(i, f"DS #{i + 1}") for i in range(len(ctx.datasets))],
2424
style={"flexGrow": 0, "minWidth": 120},
25-
tooltip="Select the test dataset to be used"
25+
tooltip="Select the test dataset to be used",
2626
)
2727
control_group = Box(
2828
style={

chartlets.py/demo/my_extension/my_panel_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def render_panel(
2828
label="Variable",
2929
options=[(v, v) for v in variable_names],
3030
style={"flexGrow": 0, "minWidth": 120},
31-
tooltip="Select the variable of the test dataset to be used"
31+
tooltip="Select the variable of the test dataset to be used",
3232
)
3333
control_group = Box(
3434
style={

chartlets.py/demo/my_extension/my_panel_3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def render_panel(
2626
id="opaque",
2727
value=opaque,
2828
label="Opaque",
29-
tooltip="Select whether the color is opaque"
29+
tooltip="Select whether the color is opaque",
3030
)
3131

3232
color_select = Select(
@@ -35,7 +35,7 @@ def render_panel(
3535
label="Color",
3636
options=COLORS,
3737
style={"flexGrow": 0, "minWidth": 80},
38-
tooltip="Select color"
38+
tooltip="Select color",
3939
)
4040

4141
info_text = Typography(

0 commit comments

Comments
 (0)