Thanks to visit codestin.com
Credit goes to pydantic.dev

Skip to content

Documentation

Pydantic uses MkDocs for documentation, together with mkdocstrings. As such, you can make use of Pydantic’s Sphinx object inventory to cross-reference the Pydantic API documentation.

In your Sphinx configuration, add the following to the intersphinx extension configuration:

intersphinx_mapping = {
  'pydantic': ('https://docs.pydantic.dev/latest', None),  # (1)
}

You can also use dev instead of latest to target the latest documentation build, up to date with the main branch.