-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model_post_init
from BaseModel
appears in the rendered documentation
#198
Comments
Workaround: Add a |
You can also exclude everything on BaseModel with the |
@mansenfranzen I suggested that workaround since my last PR had been hanging out for so long without response. Pydantic 2 has a documented naming convention that the items it adds via the BaseModel class will all start with "model_" -- it seems like the better long-term solution would be an autodoc pydantic option to bulk-drop these attributes rather than a hardcoded list in the autodocumenter's |
See screenshot. This is not supposed to happen, right?
The text was updated successfully, but these errors were encountered: