-
Notifications
You must be signed in to change notification settings - Fork 27
feat: Remove duplicated docs strings when use_attribute_docstrings
is used in pydantic >= 2.7
#276
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
Conversation
PR Description updated to latest commit (7e84765) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Type
enhancement, bug_fix
Description
Changes walkthrough
autodocumenters.py
Refactor Field Documentation Handling and Prevent Duplication
sphinxcontrib/autodoc_pydantic/directives/autodocumenters.py
needs_doc_string
andneeds_description
to handledocstring and description addition logic.
add_content
method to use the new properties forconditional logic.
docstrings to prevent duplication.
compatibility.py
Add Pydantic Version Compatibility Check
tests/compatibility.py
pydantic_ge_27
to check Pydantic versioncompatibility.
configuration.py
Extend Test Models for Documentation Behavior
tests/roots/test-base/target/configuration.py
based on Pydantic configuration.
test_configuration_fields.py
Add Tests for Field Documentation Configurations
tests/test_configuration_fields.py
under various configurations.
test_edgecases.py
Update Tests to Reflect New Field Description Handling
tests/test_edgecases.py
descriptions.
configuration.rst
Update Documentation for Field Docstring Handling
docs/source/users/configuration.rst
descriptions, especially regarding duplication.