Describe the bug
I just saw the issue #9, and it looks like Pydantic models are supported, however I couldn't manage adding a Pydantic model in documentation. I use pytkdocs through mkdocstrings so I didn't install pytkdocs myself, it is installed with mkdocstrings.
Am I doing something wrong?
To Reproduce
I referenced the model like this, (I also tried clearing the filters and enabled inherited_members to see if I can solve myself, but it didn't work anyway.) however only Pydantic's own methods shows up, nothing more.
relay/models.py
from pydantic import BaseModel
class TestModel(BaseModel):
a : int
"""test"""
b : str
"""test 2"""
c : Optional[str] = None
reference2.md
::: relay.models.TestModel
selection:
inherited_members: true
filters: []
Expected behavior
It should display attributes of a Pydantic model.
Screenshots

System (please complete the following information):
pytkdocs version: 0.12.0 (installed automatically with mkdocstrings==0.16.0)
- Python version: 3.9.7 (x64)
- OS: Windows 10
Additional context
Edit: Looks like attributes only shows up as table when I add Attributes section to model's own docstring. But I expected to see all attributes without adding them to model's own docstring.
Describe the bug
I just saw the issue #9, and it looks like Pydantic models are supported, however I couldn't manage adding a Pydantic model in documentation. I use
pytkdocsthroughmkdocstringsso I didn't installpytkdocsmyself, it is installed withmkdocstrings.Am I doing something wrong?
To Reproduce
I referenced the model like this, (I also tried clearing the filters and enabled inherited_members to see if I can solve myself, but it didn't work anyway.) however only Pydantic's own methods shows up, nothing more.
relay/models.py
reference2.md
Expected behavior
It should display attributes of a Pydantic model.
Screenshots

System (please complete the following information):
pytkdocsversion:0.12.0(installed automatically withmkdocstrings==0.16.0)Additional context
pydantic version:
1.8.2docs/requirements.txt
mkdocs.yml (partial - only
mkdocstringspart)I also have a custom CSS to hide keyword arguments:
Edit: Looks like attributes only shows up as table when I add
Attributessection to model's own docstring. But I expected to see all attributes without adding them to model's own docstring.