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
Sphinx-autodoc Error: Failed to import module. A very basic structure but not able to generate documentation
So I have been working on this for two days but not able to solve the issue. I have a very basic file structure.
Utils
|
├───docs
│ │
│ ├───build
│ └───conf.py
│ index.rst
│ modul...
Shivam Singh
Votes: 0
Answers: 0
Sphinx "autodoc" extension unable to even find standard modules guaranteed to exist
I'm attempting to document the public API of beartype, a berry fun runtime type checker for Python. I am failing utterly. Sphinx's autodoc extension fails to find standard pure-Python CPython modules ...
Cecil Curry
Votes: 0
Answers: 1