Skip to content

Commit

Permalink
Fix typo and broken link in TypeAdapter description in "Why" docs (#8703
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ADSteele916 committed Feb 2, 2024
1 parent 8898b8f commit fbed014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/why.md
Expand Up @@ -272,7 +272,7 @@ Pydantic provides four ways to create schemas and perform validation and seriali

1. [`BaseModel`](concepts/models.md) — Pydantic's own super class with many common utilities available via instance methods.
2. [`pydantic.dataclasses.dataclass`](concepts/dataclasses.md) — a wrapper around standard dataclasses which performs validation when a dataclass is initialized.
3. [`TypeAdapter`][pydantic.type_adapter.TypeAdapter] — a general way to adapt any type for validation and serialization. This allows types like [`TypedDict`](api/standard_library_types.md#typeddict) and [`NampedTuple`](api/standard_library_types.md#namedtuple) to be validated as well as simple scalar values like `int` or `timedelta` — [all types](concepts/types.md) supported can be used with `TypeAdapter`.
3. [`TypeAdapter`][pydantic.type_adapter.TypeAdapter] — a general way to adapt any type for validation and serialization. This allows types like [`TypedDict`](api/standard_library_types.md#typeddict) and [`NamedTuple`](api/standard_library_types.md#typingnamedtuple) to be validated as well as simple scalar values like `int` or `timedelta` — [all types](concepts/types.md) supported can be used with `TypeAdapter`.
4. [`validate_call`](concepts/validation_decorator.md) — a decorator to perform validation when calling a function.

??? example "Example - schema based on TypedDict"
Expand Down

0 comments on commit fbed014

Please sign in to comment.