Skip to content

Commit 249ad47

Browse files
committed
🎨 Ensure compatibility
1 parent 0e48a37 commit 249ad47

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sqlmodel/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
OnDeleteType = Literal["CASCADE", "SET NULL", "RESTRICT"]
102102

103103
FIELD_ACCEPTED_KWARGS = set(inspect_module.signature(PydanticField).parameters.keys())
104-
FIELD_ACCEPTED_KWARGS.remove("json_schema_extra")
104+
if "schema_extra" in FIELD_ACCEPTED_KWARGS:
105+
FIELD_ACCEPTED_KWARGS.remove("schema_extra")
105106

106107

107108
def __dataclass_transform__(

0 commit comments

Comments
 (0)