Skip to content

Commit 7912785

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 4595d70 commit 7912785

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ keep-runtime-typing = true
140140
filterwarnings = [
141141
"always::DeprecationWarning",
142142
"ignore:.*:DeprecationWarning:typing_extensions"
143-
]
143+
]

sqlmodel/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import inspect as inspect_module
12
import ipaddress
23
import uuid
3-
import inspect as inspect_module
44
import weakref
55
from datetime import date, datetime, time, timedelta
66
from decimal import Decimal
@@ -101,7 +101,7 @@
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+
FIELD_ACCEPTED_KWARGS.remove("json_schema_extra")
105105

106106

107107
def __dataclass_transform__(

tests/test_field_pd_and_json_kwarrgs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from sqlmodel import Field, SQLModel
21
import pytest
2+
from sqlmodel import Field, SQLModel
33

44

55
def test_json_schema_extra_applied():
6-
'''test json_schema_extra is applied to the field'''
6+
"""test json_schema_extra is applied to the field"""
77

88
class Item(SQLModel):
99
name: str = Field(
@@ -22,7 +22,7 @@ class Item(SQLModel):
2222

2323

2424
def test_pydantic_kwargs_applied():
25-
'''test pydantic_kwargs is applied to the field'''
25+
"""test pydantic_kwargs is applied to the field"""
2626

2727
class User(SQLModel):
2828
user_name: str = Field(pydantic_kwargs={"validation_alias": "UserNameInInput"})

0 commit comments

Comments
 (0)