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)
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'''
...

Daniel Walker
Votes: 0
Answers: 1
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...

Daniel Walker
Votes: 0
Answers: 1