Skip to content

Commit 4499f96

Browse files
Updated formatting to resolve E124 lint error
1 parent 115de85 commit 4499f96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sqlmodel/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,10 @@ def __init__(__pydantic_self__, **data: Any) -> None:
507507
__pydantic_self__.__class__, data
508508
)
509509
# Only raise errors if not a SQLModel model
510-
if ((not getattr(__pydantic_self__.__config__, "table", False)
511-
or getattr(__pydantic_self__.__config__, "validate", False))
512-
and validation_error):
510+
if (
511+
not getattr(__pydantic_self__.__config__, "table", False)
512+
or getattr(__pydantic_self__.__config__, "validate", False)
513+
) and validation_error:
513514
raise validation_error
514515
# Do not set values as in Pydantic, pass them through setattr, so SQLAlchemy
515516
# can handle them

0 commit comments

Comments
 (0)