Skip to content

Commit 6b5f287

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 46320fe commit 6b5f287

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/advanced/change-default-type-mapping.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ def map_python_type_to_sa_type(type_: "PythonType", meta: "PydanticMeta", annota
4848

4949
## Current mapping
5050

51-
| Python type | SqlAlchemy type |
51+
| Python type | SqlAlchemy type |
5252
|-----------------------|------------------------------------------------------------------------------------------------------------------------------------|
5353
| Enum | `lambda type_, meta, annotation: sa_Enum(type_)` |
54-
| str | `lambda type_, meta, annotation: AutoString(length=getattr(meta, "max_length", None))` |
54+
| str | `lambda type_, meta, annotation: AutoString(length=getattr(meta, "max_length", None))` |
5555
| float | Float |
5656
| bool | Boolean |
5757
| int | Integer |
@@ -67,4 +67,4 @@ def map_python_type_to_sa_type(type_: "PythonType", meta: "PydanticMeta", annota
6767
| ipaddress.IPv6Network | AutoString |
6868
| Path | AutoString |
6969
| uuid.UUID | Uuid |
70-
| BaseModel | `lambda type_, meta, annotation: PydanticJSONType(type=annotation)` |
70+
| BaseModel | `lambda type_, meta, annotation: PydanticJSONType(type=annotation)` |

docs/advanced/pydantic-json-type.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Then map Stats to Hero as shown bellow:
4545
{!./docs_src/advanced/pydantic_json_type/tutorial002.py[ln:36-39]!}
4646
```
4747

48-
After all of these actions we can change mutated model, and it will be saved to database after we call `session.commit()`
48+
After all of these actions we can change mutated model, and it will be saved to database after we call `session.commit()`
4949

5050
```{.python .annotate hl_lines="4" }
5151
{!./docs_src/advanced/pydantic_json_type/tutorial002.py[ln:76-94]!}
@@ -57,4 +57,4 @@ After all of these actions we can change mutated model, and it will be saved to
5757
{!./docs_src/advanced/pydantic_json_type/tutorial002.py!}
5858
```
5959

60-
///
60+
///

0 commit comments

Comments
 (0)