python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k 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