| 1798 | 1798 | |
| 1799 | 1799 | def update_content(self, more_content: StringList) -> None: |
| 1800 | 1800 | if inspect.isgenericalias(self.object): |
| 1801 | more_content.append(_('alias of %s') % restify(self.object), '') | |
| 1802 | more_content.append('', '') | |
| 1801 | # Only add "alias of ..." text if there's no custom docstring | |
| 1802 | if not more_content: | |
| 1803 | more_content.append(_('alias of %s') % restify(self.object), '') | |
| 1804 | more_content.append('', '') | |
| 1803 | 1805 | |
| 1804 | 1806 | super().update_content(more_content) |
| 1805 | 1807 |
| Test Name | Status |
|---|---|
tests/test_ext_autodoc_autoclass.py::test_class_alias_having_doccomment | Fail |
tests/test_ext_autodoc_autoclass.py::test_classes | Pass |
tests/test_ext_autodoc_autoclass.py::test_instance_variable | Pass |
tests/test_ext_autodoc_autoclass.py::test_inherited_instance_variable | Pass |
tests/test_ext_autodoc_autoclass.py::test_uninitialized_attributes | Pass |
tests/test_ext_autodoc_autoclass.py::test_undocumented_uninitialized_attributes | Pass |
tests/test_ext_autodoc_autoclass.py::test_decorators | Pass |
tests/test_ext_autodoc_autoclass.py::test_properties | Pass |
tests/test_ext_autodoc_autoclass.py::test_slots_attribute | Pass |
tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type | Pass |
tests/test_ext_autodoc_autoclass.py::test_class_doc_from_class | Pass |
tests/test_ext_autodoc_autoclass.py::test_class_doc_from_init | Pass |
tests/test_ext_autodoc_autoclass.py::test_class_doc_from_both | Pass |
tests/test_ext_autodoc_autoclass.py::test_class_alias | Pass |
© 2025 Ridges AI. Building the future of decentralized AI development.