Skip to content

Commit b4efcd3

Browse files
authored
Fix rendering of annotations in code example (#470)
1 parent 0922bc1 commit b4efcd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ print(Settings().model_dump())
9090
2. The environment variable name is overridden using `alias`. In this case, the environment variable
9191
`my_api_key` will be used for both validation and serialization instead of `api_key`.
9292

93-
Check the [`Field` documentation](fields.md#field-aliases) for more information.
93+
Check the [`Field` documentation](fields.md#field-aliases) for more information.
9494

95-
3. The `AliasChoices` class allows to have multiple environment variable names for a single field.
95+
3. The [`AliasChoices`][pydantic.AliasChoices] class allows to have multiple environment variable names for a single field.
9696
The first environment variable that is found will be used.
9797

98-
Check the [`AliasChoices`](alias.md#aliaspath-and-aliaschoices) for more information.
98+
Check the [documentation on alias choices](alias.md#aliaspath-and-aliaschoices) for more information.
9999

100-
4. The `ImportString` class allows to import an object from a string.
101-
In this case, the environment variable `special_function` will be read and the function `math.cos` will be imported.
100+
4. The [`ImportString`][pydantic.types.ImportString] class allows to import an object from a string.
101+
In this case, the environment variable `special_function` will be read and the function [`math.cos`][] will be imported.
102102

103103
5. The `env_prefix` config setting allows to set a prefix for all environment variables.
104104

0 commit comments

Comments
 (0)