Skip to content

Commit 884015d

Browse files
authored
Fix one docs link and resolve some warnings for two others (#7153)
1 parent 8ed6ea4 commit 884015d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/migration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,8 @@ class Model(BaseModel):
786786
x: MyInt
787787
```
788788

789-
Read more about it on the [Composing types via `Annotated`](../usage/types/custom/#composing-types-via-annotated) section.
789+
Read more about it in the [Composing types via `Annotated`](./usage/types/custom.md#composing-types-via-annotated)
790+
docs.
790791

791792
For `ConstrainedStr` you can use [`StringConstraints`][pydantic.types.StringConstraints] instead.
792793

@@ -802,7 +803,7 @@ For `ConstrainedStr` you can use [`StringConstraints`][pydantic.types.StringCons
802803
| `pydantic.error_wrappers.ValidationError` | `pydantic.ValidationError` |
803804
| `pydantic.utils.to_camel` | `pydantic.alias_generators.to_pascal` |
804805
| `pydantic.utils.to_lower_camel` | `pydantic.alias_generators.to_camel` |
805-
| `pydantic.PyObject` | [`pydantic.ImportString`](usage/types/string_types/#importstring) |
806+
| `pydantic.PyObject` | [`pydantic.ImportString`](usage/types/string_types.md#importstring) |
806807

807808
## Deprecated and moved in Pydantic V2
808809

docs/usage/dataclasses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class MyDataclass2:
138138
1. You can read more about `validate_assignment` in [model_config](model_config.md#validate-assignment).
139139

140140
!!! note
141-
Pydantic dataclasses do not support [`extra='allow'`](model_config/#extra-attributes), where extra fields passed
141+
Pydantic dataclasses do not support [`extra='allow'`](model_config.md#extra-attributes), where extra fields passed
142142
to the initializer would be stored as extra attributes on the dataclass.
143143

144144
`extra='ignore'` is still supported for the purpose of ignoring

0 commit comments

Comments
 (0)