Skip to content

Commit f156b63

Browse files
pnpm format
1 parent 1d5bd36 commit f156b63

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

packages/python/src/components/DataclassDeclaration.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ export function DataclassDeclaration(props: DataclassDeclarationProps) {
176176
)
177177
</Show>
178178
<hbr />
179-
<ClassDeclaration name={props.name} bases={props.bases} doc={props.doc} refkey={props.refkey}>
179+
<ClassDeclaration
180+
name={props.name}
181+
bases={props.bases}
182+
doc={props.doc}
183+
refkey={props.refkey}
184+
>
180185
<StatementList>{props.children}</StatementList>
181186
{validateDataclassMemberConflicts(kwargs as DataclassDecoratorKwargs)}
182187
</ClassDeclaration>

packages/python/test/dataclassdeclarations.test.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { d } from "@alloy-js/core/testing";
33
import { describe, expect, it } from "vitest";
44
import { dataclassesModule } from "../src/builtins/python.js";
55
import * as py from "../src/index.js";
6-
import { assertFileContents, toSourceText, toSourceTextMultiple } from "./utils.jsx";
6+
import {
7+
assertFileContents,
8+
toSourceText,
9+
toSourceTextMultiple,
10+
} from "./utils.jsx";
711

812
describe("DataclassDeclaration", () => {
913
it("Creates a dataclass with a class doc", () => {
@@ -609,10 +613,7 @@ describe("DataclassDeclaration", () => {
609613
name="user"
610614
type={userRefkey}
611615
initializer={
612-
<py.ClassInstantiation
613-
target="User"
614-
args={['1', '"Alice"']}
615-
/>
616+
<py.ClassInstantiation target="User" args={["1", '"Alice"']} />
616617
}
617618
/>
618619
<hbr />

0 commit comments

Comments
 (0)