Skip to content

Commit 115de85

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sqlmodel/main.py

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

0 commit comments

Comments
 (0)