From 4499f96e59c6d7b60720742f46b472d500d25fbe Mon Sep 17 00:00:00 2001 From: AndrewRiggs-Atkins Date: Wed, 15 Feb 2023 12:39:04 +0000 Subject: [PATCH] Updated formatting to resolve E124 lint error --- sqlmodel/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sqlmodel/main.py b/sqlmodel/main.py index c47902651c..8e94be8e8f 100644 --- a/sqlmodel/main.py +++ b/sqlmodel/main.py @@ -507,9 +507,10 @@ def __init__(__pydantic_self__, **data: Any) -> None: __pydantic_self__.__class__, data ) # Only raise errors if not a SQLModel model - if ((not getattr(__pydantic_self__.__config__, "table", False) - or getattr(__pydantic_self__.__config__, "validate", False)) - and validation_error): + if ( + not getattr(__pydantic_self__.__config__, "table", False) + or getattr(__pydantic_self__.__config__, "validate", False) + ) and validation_error: raise validation_error # Do not set values as in Pydantic, pass them through setattr, so SQLAlchemy # can handle them