Skip to content

Commit cff46d4

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent bc4a909 commit cff46d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,7 @@ def Field(
448448
# Handle a workaround when json_schema_extra was passed via schema_extra
449449
if "json_schema_extra" in current_schema_extra:
450450
from_schema_extra = current_schema_extra.pop("json_schema_extra")
451-
current_json_schema_extra = (
452-
current_json_schema_extra or from_schema_extra
453-
)
451+
current_json_schema_extra = current_json_schema_extra or from_schema_extra
454452
# Split parameters from schema_extra to field_info_kwargs and json_schema_extra
455453
for key, value in current_schema_extra.items():
456454
if key in FIELD_ACCEPTED_KWARGS:

0 commit comments

Comments
 (0)