Skip to content

Commit 5412757

Browse files
committed
Fixes linter/formatting errors
1 parent d311e6a commit 5412757

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/reactpy/web/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def export(
267267
return _make_export(web_module, export_names, fallback, allow_children)
268268
else:
269269
if web_module.export_names is not None:
270-
missing = sorted(set([e.split(".")[0] for e in export_names]).difference(web_module.export_names))
270+
missing = sorted({e.split(".")[0] for e in export_names}.difference(web_module.export_names))
271271
if missing:
272272
msg = f"{web_module.source!r} does not export {missing!r}"
273273
raise ValueError(msg)

tests/test_web/test_module.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ async def test_keys_properly_propagated(display: DisplayFixture):
214214
215215
The `key` property was being lost in its propagation from the server-side ReactPy
216216
definition to the front-end JavaScript.
217-
218-
This property is required for certain JS components, such as the GridLayout from
217+
218+
This property is required for certain JS components, such as the GridLayout from
219219
react-grid-layout.
220220
"""
221221
module = reactpy.web.module_from_file(
@@ -273,7 +273,7 @@ async def test_subcomponent_notation_as_str_attrs(display: DisplayFixture):
273273
"subcomponent-notation", JS_FIXTURES_DIR / "subcomponent-notation.js",
274274
)
275275
InputGroup, InputGroupText, FormControl, FormLabel = reactpy.web.export(
276-
module,
276+
module,
277277
["InputGroup", "InputGroup.Text", "Form.Control", "Form.Label"]
278278
)
279279

@@ -309,7 +309,7 @@ async def test_subcomponent_notation_as_str_attrs(display: DisplayFixture):
309309
FormControl({"aria-label": "Amount (to the nearest dollar)"}),
310310
InputGroupText(".00"),
311311
),
312-
312+
313313
InputGroup(
314314
InputGroupText("With textarea"),
315315
FormControl({"as": "textarea", "aria-label": "With textarea"}),
@@ -368,7 +368,7 @@ async def test_subcomponent_notation_as_obj_attrs(display: DisplayFixture):
368368
Form.Control({"aria-label": "Amount (to the nearest dollar)"}),
369369
InputGroup.Text(".00"),
370370
),
371-
371+
372372
InputGroup(
373373
InputGroup.Text("With textarea"),
374374
Form.Control({"as": "textarea", "aria-label": "With textarea"}),

0 commit comments

Comments
 (0)