8000 Fix link issue in docs to perf page (#11048) · pydantic/pydantic@32f405b · GitHub
[go: up one dir, main page]

Skip to content

Commit 32f405b

Browse files
Fix link issue in docs to perf page (#11048)
1 parent 3173cf5 commit 32f405b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/concepts/models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ print(Model(items=(1, 2, 3)))
218218
to allow both lists and tuples. But Pydantic takes care of converting the tuple input to a list, so
219219
in most cases this isn't necessary.
220220

221-
Besides, using these abstract types can also lead to [poor validation performance](./performance.md#sequence-vs-list-or-tuple---mapping-vs-dict), and in general using concrete container types
221+
Besides, using these abstract types can also lead to [poor validation performance](./performance.md#sequence-vs-list-or-tuple-with-mapping-vs-dict), and in general using concrete container types
222222
will avoid unnecessary checks.
223223

224224
## Nested models

docs/concepts/performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ the function is called. Instead, instantiate it once, and reuse it.
4848
# do something with adapter
4949
```
5050

51-
## `Sequence` vs `list` or `tuple` - `Mapping` vs `dict`
51+
## `Sequence` vs `list` or `tuple` with `Mapping` vs `dict`
5252

5353
When using `Sequence`, Pydantic calls `isinstance(value, Sequence)` to check if the value is a sequence.
5454
Also, Pydantic will try to validate against different types of sequences, like `list` and `tuple`.
@@ -57,7 +57,7 @@ If you know the value is a `list` or `tuple`, use `list` or `tuple` instead of `
5757
The same applies to `Mapping` and `dict`.
5858
If you know the value is a `dict`, use `dict` instead of `Mapping`.
5959

60-
## Don't do validation when you don't have to - use `Any` to keep the value unchanged
60+
## Don't do validation when you don't have to, use `Any` to keep the value unchanged
6161

6262
If you don't need to validate a value, use `Any` to keep the value unchanged.
6363

0 commit comments

Comments
 (0)
0