Skip to content

Commit 7c7f851

Browse files
committed
Apply formatting
1 parent 5790e11 commit 7c7f851

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/js/packages/@reactpy/client/src/vdom.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ export function createAttributes(
190190
),
191191
),
192192
...Object.fromEntries(
193-
Object.entries(model.inlineJavascript || {}).map(([name, inlineJavaScript]) =>
194-
createInlineJavascript(name, inlineJavaScript),
193+
Object.entries(model.inlineJavascript || {}).map(
194+
([name, inlineJavaScript]) =>
195+
createInlineJavascript(name, inlineJavaScript),
195196
),
196197
),
197198
}),

src/reactpy/core/vdom.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
EventHandlerDict,
2525
EventHandlerType,
2626
ImportSourceDict,
27-
JavaScript,
2827
InlineJavascriptDict,
28+
JavaScript,
2929
VdomAttributes,
3030
VdomChildren,
3131
VdomDict,
@@ -194,7 +194,9 @@ def __call__(
194194
**({"children": children} if children else {}),
195195
**({"attributes": attributes} if attributes else {}),
196196
**({"eventHandlers": event_handlers} if event_handlers else {}),
197-
**({"inlineJavascript": inline_javascript} if inline_javascript else {}),
197+
**(
198+
{"inlineJavascript": inline_javascript} if inline_javascript else {}
199+
),
198200
**({"importSource": self.import_source} if self.import_source else {}),
199201
}
200202

src/reactpy/transforms.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ def normalize_style_attributes(self, vdom: dict[str, Any]) -> None:
3535
if ":" in part
3636
)
3737
}
38-
38+
3939
@staticmethod
4040
def _attributes_to_reactjs(attributes: VdomAttributes):
4141
"""Convert HTML attribute names to their ReactJS equivalents.
42-
43-
This method is private because it is called prior to instantiating a
42+
43+
This method is private because it is called prior to instantiating a
4444
Vdom class from a parsed html string, so it does not need to be called
4545
as part of this class's instantiation (see comments in __init__ above).
4646
"""

0 commit comments

Comments
 (0)