Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge branch '4.3.x' into 4.x | Takeshi KOMIYA | 2021-11-28 | 1 | -1/+1 | |
|\ | ||||||
| * | Fix #9844: autodoc: Failed to preserve defvalues for partial function | Takeshi KOMIYA | 2021-11-26 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch '4.3.x' into 4.x | Takeshi KOMIYA | 2021-11-23 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Fix #9879: autodoc: AttributeError for object having invalid __doc__ | Takeshi KOMIYA | 2021-11-22 | 1 | -1/+1 | |
| | | ||||||
* | | Fix #9866: autodoc: doccoment for the imported class was ignored | Takeshi KOMIYA | 2021-11-21 | 1 | -2/+10 | |
|/ | | | | | | | Autodoc tried to scan doccomment on the module where the class defined. But it failed to get it if the class is imported from other module. This analyzes the target module to obtain the doccomment. | |||||
* | Fix #9781: autodoc_preserve_defaults does not support hexadecimal | Takeshi KOMIYA | 2021-10-31 | 1 | -5/+33 | |
| | ||||||
* | Fix #9752: autodoc: Failed to detect type annotation for slots attribute | Takeshi KOMIYA | 2021-10-23 | 1 | -3/+11 | |
| | ||||||
* | Merge branch '4.x' into 9607_incorrect_orig_bases | Takeshi KOMIYA | 2021-09-27 | 3 | -7/+10 | |
|\ | ||||||
| * | Merge branch '4.x' into 9657_qualname_of_mock | Takeshi KOMIYA | 2021-09-27 | 2 | -6/+7 | |
| |\ | ||||||
| | * | Fix #9651: autodoc_typehints_description_target was confused by :returns: | Takeshi KOMIYA | 2021-09-26 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | It only checks the existence of `:return:` field. And it does not check `:returns:` field. It causes the absence of return types. | |||||
| | * | Fix #9655: autodoc: mocked object having doc comment is warned unexpectedly | Takeshi KOMIYA | 2021-09-24 | 1 | -4/+5 | |
| | | | | | | | | | | | | A warning for mocked object should not be emitted if it has doc comment. | |||||
| * | | Fix #9657: autodoc: basecls for a subclass of mocked object is incorrect | Takeshi KOMIYA | 2021-09-21 | 1 | -1/+3 | |
| |/ | ||||||
* | | Fix #9607: autodoc: Incorrect base class detection | Takeshi KOMIYA | 2021-09-20 | 1 | -1/+1 | |
|/ | | | | | | | | | In case of the descendants of generic class, the value of obj.__orig_bases__ is incorrect because it returns original base arguments for the child of the generic class instead of the target class itself. This uses obj.__dict__ to get the correct __orig_bases__ information. | |||||
* | Merge pull request #9644 from xmo-odoo/fix-sourcename-broken-getattr | Takeshi KOMIYA | 2021-09-18 | 1 | -2/+2 | |
|\ | | | | | Protect `sphinx.ext.autodoc.get_sourcename` against misbehaving `__getattr__` | |||||
| * | Protect get_sourcename against misbehaving `__getattr__` | Xavier Morel | 2021-09-17 | 1 | -2/+2 | |
| | | ||||||
* | | Close #9639: autodoc: Support asynchronous generator functions | Takeshi KOMIYA | 2021-09-17 | 1 | -2/+2 | |
|/ | ||||||
* | Fix typos discovered by codespell | Christian Clauss | 2021-09-08 | 1 | -2/+2 | |
| | ||||||
* | Merge branch '4.x' into 9479_autodoc_mocked_target | Takeshi KOMIYA | 2021-08-02 | 1 | -9/+13 | |
|\ | ||||||
| * | Fix autodoc_docstring_signature support for __init__ and __new__ | Jeremy Maitin-Shepard | 2021-07-31 | 1 | -9/+13 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `MethodDocumenter.get_doc` method added by 51ae283a38ed297df3fd5e0554dcc9acaa103e8c prevents DocstringSignatureMixin from working correctly for __init__ and __new__ methods. Additionally, the __new__ docstring was not obtained correctly. This commit checks for `self._new_docstrings` being set, and also corrects the logic for obtaining the __new__ docstring. There still remains the issue that when the class signature is obtained from the signature of __init__ or __new__, only the real signature is used, due to the use of `sphinx.util.inspect.signature`; the autodoc_docstring_signature option does not have any effect. | |||||
* | | Fix #9479: autodoc: Emit a warning if target is a mocked object | Takeshi KOMIYA | 2021-07-27 | 1 | -0/+4 | |
|/ | ||||||
* | Merge branch '4.1.x' into 4.x | Takeshi KOMIYA | 2021-07-26 | 1 | -1/+6 | |
|\ | ||||||
| * | Fix #9436, #9471: autodoc: crashed if autodoc_class_signature = "separated" | Takeshi KOMIYA | 2021-07-24 | 1 | -1/+6 | |
| | | | | | | | | A list should be used for special-members option instead of set. | |||||
* | | Merge pull request #9488 from tk0miya/9487_typehint_for_cached_property | Takeshi KOMIYA | 2021-07-24 | 1 | -2/+9 | |
|\ \ | | | | | | | Fix #9487: autodoc: typehint for cached_property is not shown | |||||
| * | | Fix #9487: autodoc: typehint for cached_property is not shown | Takeshi KOMIYA | 2021-07-22 | 1 | -2/+9 | |
| | | | ||||||
* | | | Merge branch 'sphinx-doc:4.x' into 4.x | Louis Maddox | 2021-07-19 | 1 | -2/+29 | |
|\ \ \ | |/ / | ||||||
| * | | Close #9445: autodoc: Support class properties | Takeshi KOMIYA | 2021-07-17 | 1 | -2/+29 | |
| |/ | | | | | | | | | Since python 3.9, `classmethod` starts to support creating a "class property". This supports to generate document for it. | |||||
* | | Improve sphinx.ext.autodoc docstrings | Louis Maddox | 2021-07-19 | 1 | -6/+6 | |
| | | ||||||
* | | Fix warning typo; improve sphinx.ext.autodoc docstrings | Louis Maddox | 2021-07-19 | 1 | -4/+4 | |
| | | ||||||
* | | Improve sphinx.ext.autodoc docstrings | Louis Maddox | 2021-07-18 | 1 | -2/+2 | |
|/ | ||||||
* | Fix #9384: autodoc_typehints='none' supports typehints for attributes | Takeshi KOMIYA | 2021-06-29 | 1 | -11/+15 | |
| | ||||||
* | Fix #9283: autodoc: failed to build doc for attribute not commented | Takeshi KOMIYA | 2021-05-30 | 1 | -0/+27 | |
| | | | | | | Autoattribute directive should check the existence of instance attribute that is defined inside __init__() but not having comments before accessing it. | |||||
* | Fix #9250: autodoc: The inherited method not having docstring is wrongly parsed | Takeshi KOMIYA | 2021-05-23 | 1 | -2/+2 | |
| | | | | | | `sphinx.util.inspect.getdoc()` clean the docstring up if the method is inherited and not having docstring. That causes indentations are removed on processing it. | |||||
* | Merge branch '4.x' into 3014_autodoc-process-bases | Takeshi KOMIYA | 2021-05-17 | 1 | -2/+63 | |
|\ | ||||||
| * | Merge branch '4.x' into 9218_doccomment_for_aliased_class | Takeshi KOMIYA | 2021-05-16 | 1 | -0/+48 | |
| |\ | ||||||
| | * | Close #4257: autodoc: Add autodoc_class_signature | Takeshi KOMIYA | 2021-05-16 | 1 | -0/+48 | |
| | | | | | | | | | | | | | | | Add `autodoc_class_signature` to separate the class entry and the definition of `__init__()` method. | |||||
| * | | Close #8061, #9218: autodoc: Support variable comment for alias classes | Takeshi KOMIYA | 2021-05-15 | 1 | -2/+15 | |
| |/ | ||||||
* | | Close #3014: autodoc: Add autodoc-process-bases | Takeshi KOMIYA | 2021-05-16 | 1 | -7/+13 | |
|/ | | | | | | Add `autodoc-process-bases` to modify the base classes of the class definitions. This allows the extensions to insert or modify the list of the base classes via event-handlers. | |||||
* | Merge pull request #9185 from AWhetter/autodoc_typehints_both | Takeshi KOMIYA | 2021-05-12 | 2 | -5/+5 | |
|\ | | | | | autodoc.typehints can accurately represent overloads | |||||
| * | autodoc.typehints can accurately represent overloads | Ashley Whetter | 2021-05-08 | 2 | -5/+5 | |
| | | ||||||
* | | Merge branch '4.0.x' into 4.x | Takeshi KOMIYA | 2021-05-11 | 1 | -1/+1 | |
|\ \ | ||||||
| * | | Fix #9189: autodoc: crashed by ValueError on generating signature of property | Takeshi KOMIYA | 2021-05-09 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | Autodoc is crashed if `inspect.signature` raises ValueError on generating signature from a property of the class. It seems the original code re-raise the exception meaningless. So this ignores it even if raised. | |||||
* | | | Merge pull request #9182 from tk0miya/refactor_autodoc | Takeshi KOMIYA | 2021-05-10 | 1 | -16/+15 | |
|\ \ \ | | | | | | | | | refactor: autodoc: Remove backslashes from the tail of line | |||||
| * | | | refactor: autodoc: Remove backslashes from the tail of line | Takeshi KOMIYA | 2021-05-08 | 1 | -16/+15 | |
| | |/ | |/| | ||||||
* | | | Fix #9175: autodoc: Special member is not documented in the module | Takeshi KOMIYA | 2021-05-08 | 1 | -1/+2 | |
|/ / | | | | | | | | | | | The special members are not treated as "attributes". So they're not handled by DataDocumenter. This moves the detection to the earlier step of filter_members(). | |||||
* | | Merge branch '4.x' into 8597_metadata_only_docstring | Takeshi KOMIYA | 2021-05-03 | 2 | -29/+51 | |
|\ \ | ||||||
| * | | Fix #8872: autodoc: stacked singledispatches are wrongly rendered | Takeshi KOMIYA | 2021-05-03 | 1 | -25/+38 | |
| | | | | | | | | | | | | | | | | | | | | | | | | When multiple singledispatch decorators are stacked, the first typehints are copied to the subsequent definitions unexpectedly. Now autodoc generates a dummy function not to affect typehints to subsequent functions. | |||||
| * | | Close #8107: autodoc: Add class-doc-from option to autoclass directive | Takeshi KOMIYA | 2021-05-01 | 2 | -4/+13 | |
| |/ | | | | | | | | | | | Add `class-doc-from` option to the `autoclass` directive to control the content of the specific class. It takes `class`, `init`, and `both` like `autoclass_content`. | |||||
* | | Fix #8597: autodoc: metadata only docstring is treated as undocumented | Takeshi KOMIYA | 2021-05-02 | 1 | -4/+4 | |
|/ | | | | | The metadata in docstring is invisible content. Therefore docstring having only metadata should be treated as undocumented. | |||||
* | Merge branch '4.0.x' into 9110_restify_GenericAlias | Takeshi KOMIYA | 2021-04-20 | 1 | -1/+8 | |
|\ | ||||||
| * | Fix #9095: autodoc: TypeError is raised on processing broken metaclass | Takeshi KOMIYA | 2021-04-19 | 1 | -1/+8 | |
| | | | | | | | | | | | | | | The logging module is crashed when the target object is a broken metaclass that raises a TypeError on `isinstance()`. This adds a workaround code to avoid the error. |