Skip to content

Commit 04ebc9b

Browse files
lint fix
1 parent 7a44445 commit 04ebc9b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/generators/python/presets/Pydantic.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ function buildFieldArgs(
3333
}
3434

3535
if (constOptions) {
36-
decoratorArgs.push(`default=${formatPythonConstValue(constOptions.originalInput)}`);
36+
decoratorArgs.push(
37+
`default=${formatPythonConstValue(constOptions.originalInput)}`
38+
);
3739
decoratorArgs.push('frozen=True');
3840
} else if (isOptional) {
3941
decoratorArgs.push('default=None');
@@ -47,7 +49,10 @@ function buildFieldArgs(
4749
decoratorArgs.push('exclude=True');
4850
}
4951

50-
if (property.propertyName !== property.unconstrainedPropertyName && !isUnwrappedDict) {
52+
if (
53+
property.propertyName !== property.unconstrainedPropertyName &&
54+
!isUnwrappedDict
55+
) {
5156
decoratorArgs.push(`alias='''${property.unconstrainedPropertyName}'''`);
5257
}
5358

0 commit comments

Comments
 (0)