Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about autodoc-pydantic

Read more about autodoc-pydantic

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - autodoc-pydantic

autodoc_pydantic: Show fields from parent model

I'm using the autodoc_pydantic plugin for Sphinx to document my pydantic.BaseModel classes. However, there are cases where I have something like class Foo(pydantic.BaseModel): '''Foo class''' ...
test-img

Daniel Walker

python

python-sphinx

pydantic

autodoc

autodoc-pydantic

Votes: 0

Answers: 1

Latest Answer

It can be accomplished via the :inherited-members: option: .. automodule:: foo.foo :inherited-members: BaseModel
test-img

Daniel Walker

Autodoc failing with class that has nested pydantic model

As my MRE, I've got the following file: blah.py '''Blah module''' import pydantic class Foo: '''Foo class''' class Bar(pydantic.BaseModel): '''Bar class''' x: str = pydanti...
test-img

Daniel Walker

python

python-sphinx

pydantic

autodoc

autodoc-pydantic

Votes: 0

Answers: 1

Latest Answer

This issue was fixed in version 1.7.2.
test-img

Daniel Walker

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved