Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test: Rename test_autodoc.py to test_ext_autodoc.py | Takeshi KOMIYA | 2020-05-06 | 1 | -1712/+0 |
| | |||||
* | test: Merge test_ext_autodoc.py and test_autodoc.py | Takeshi KOMIYA | 2020-05-06 | 1 | -0/+21 |
| | |||||
* | test: Do not use module level state-full fixture | Takeshi KOMIYA | 2020-05-06 | 1 | -82/+31 |
| | |||||
* | Add test helper: make_directive_bridge() | Takeshi KOMIYA | 2020-05-06 | 1 | -9/+15 |
| | |||||
* | Merge branch '3.x' into 6857_enum_classmethod | Takeshi KOMIYA | 2020-05-02 | 1 | -0/+9 |
|\ | |||||
| * | Fix #7559: autodoc: misdetects a sync function is async | Takeshi KOMIYA | 2020-05-01 | 1 | -0/+9 |
| | | |||||
* | | Fix #6857: autodoc: failed to detect a classmethod on Enum class | Takeshi KOMIYA | 2020-04-30 | 1 | -7/+8 |
|/ | |||||
* | Close #7143: autodoc: Support final classes and methods | Takeshi KOMIYA | 2020-04-28 | 1 | -0/+33 |
| | |||||
* | Merge pull request #7487 from thomascobb/singledispatch_autofunction | Takeshi KOMIYA | 2020-04-27 | 1 | -0/+32 |
|\ | | | | | Support singledispatch autodoc directives | ||||
| * | Support singledispatch in autofunction/methodThis makes autofunction and ↵ | Tom Cobb | 2020-04-24 | 1 | -0/+32 |
| | | | | | | | | automethod work standalone withsingledispatch functions and methods. Previously only automodule wouldsupport these | ||||
* | | Merge pull request #7564 from eric-wieser/fix-missing-__annotations__ | Takeshi KOMIYA | 2020-04-27 | 1 | -0/+7 |
|\ \ | | | | | | | autodoc: Fix a logic error that causes annotations not to be shown for descriptors | ||||
| * | | Fix a logic error that causes annotations not to be shown for descriptors | Eric Wieser | 2020-04-27 | 1 | -0/+7 |
| |/ | | | | | | | | | | | | | This `if not self._datadescriptor` was originally here before type annotations were supported, to prevent showing `descr4 = <_Descriptor ...>` in the docs. When type annotations were added, the support for appending `:type:` was put in the wrong place. It should have been outside this if, not within it. | ||||
* | | autodoc: Suppress default value for uninitialized variables | Takeshi KOMIYA | 2020-04-20 | 1 | -1/+0 |
| | | |||||
* | | Close #2044: autodoc: Suppress default value for instance attributes | Takeshi KOMIYA | 2020-04-20 | 1 | -7/+0 |
|/ | |||||
* | test: Fix indentation | Takeshi KOMIYA | 2020-04-05 | 1 | -1/+1 |
| | |||||
* | Merge branch '2.x' into 3.0.x | Takeshi KOMIYA | 2020-04-05 | 1 | -0/+13 |
|\ | |||||
| * | Fix: autodoc: `__wrapped__` functions are not documented correctly | Terence D. Honles | 2020-02-27 | 1 | -0/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functions that are decorated with `@lru_cache` or other `functools` decorators may not even be detected as a function. This results in the documentation not having the `()` or even trying to render the function signature. This change updates the `sphinx.util.inspect` code to unwrap `__wrapped__` functions before determining if they can be documented. `@lru_cache` and its associated test is an example of a decorated function that is incorrectly identified as an attribute rather than a module level function and when rendering the signature (upon changing `isattributedescriptor`) the decorated function is still incorrectly identified as a C function. This change also renames the newly introduced `unwrap` as `unwrap_all` because it is different than the prexisting Python supplied `inspect.unwrap`. See `update_wrapper` "Changed in version 3.4" for more background: https://docs.python.org/3/library/functools.html#functools.update_wrapper | ||||
* | | Fix #7355: autodoc: a signature of cython-function is not recognized well | Takeshi KOMIYA | 2020-03-31 | 1 | -1/+1 |
| | | |||||
* | | Fix #7331: autodoc: a cython-method is not recognized as a method | Takeshi KOMIYA | 2020-03-22 | 1 | -0/+12 |
| | | |||||
* | | Fix #7331: autodoc: a cython-function is not recognized as a function | Takeshi KOMIYA | 2020-03-22 | 1 | -0/+26 |
| | | |||||
* | | Merge pull request #7358 from tk0miya/refactor_autodoc | Takeshi KOMIYA | 2020-03-22 | 1 | -160/+160 |
|\ \ | | | | | | | refactor: autodoc: Remove needless spaces from blank line | ||||
| * | | refactor: autodoc: Remove needless spaces from blank line | Takeshi KOMIYA | 2020-03-22 | 1 | -160/+160 |
| | | | |||||
* | | | Update autodoc tests for new backslash handling | Jakob Lykke Andersen | 2020-03-20 | 1 | -3/+3 |
|/ / | |||||
* | | autodoc: Support singledispatch methods | Takeshi KOMIYA | 2020-03-07 | 1 | -0/+27 |
| | | |||||
* | | Close #2815: autodoc: Support singledispatch functions | Takeshi KOMIYA | 2020-03-07 | 1 | -0/+19 |
| | | |||||
* | | Close #7165: autodoc: Support Annotated type (PEP-593) | Takeshi KOMIYA | 2020-03-03 | 1 | -0/+18 |
| | | |||||
* | | Merge branch '2.4.x' into 3.x | Takeshi KOMIYA | 2020-02-22 | 1 | -1/+17 |
|\ \ | |/ | |||||
| * | Fix #7189: autodoc: classmethod coroutines are not detected | Takeshi KOMIYA | 2020-02-22 | 1 | -1/+17 |
| | | |||||
* | | Merge branch 'master' into 5637 | Takeshi KOMIYA | 2020-02-12 | 1 | -570/+377 |
|\ \ | |||||
| * \ | Merge branch '2.0' | Takeshi KOMIYA | 2020-02-09 | 1 | -25/+53 |
| |\ \ | | |/ | |||||
| | * | autodoc: Support type_comment styled type annotation for variables | Takeshi KOMIYA | 2020-02-03 | 1 | -4/+26 |
| | | | |||||
| | * | autodoc: Show type annotation for instance variables | Takeshi KOMIYA | 2020-02-03 | 1 | -0/+4 |
| | | | |||||
| | * | autodoc: Support type annotations for variables | Takeshi KOMIYA | 2020-02-03 | 1 | -23/+25 |
| | | | |||||
| * | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-30 | 1 | -0/+66 |
| |\ \ | | |/ | |||||
| | * | Add testcase for instance variables without defaults | Takeshi KOMIYA | 2020-01-26 | 1 | -1/+15 |
| | | | |||||
| | * | Close #7051: autodoc: Support instance variables without defaults (PEP-526) | Takeshi KOMIYA | 2020-01-25 | 1 | -0/+41 |
| | | | |||||
| | * | Merge branch '2.0' into 7023_partial_listed_as_module_members | Takeshi KOMIYA | 2020-01-19 | 1 | -3/+32 |
| | |\ | |||||
| | * | | Fix #7023: autodoc: partial functions are listed as module members | Takeshi KOMIYA | 2020-01-19 | 1 | -0/+11 |
| | | | | |||||
| * | | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-19 | 1 | -6/+41 |
| |\ \ \ | | | |/ | | |/| | |||||
| | * | | Merge pull request #7031 from tk0miya/7023_nested_partial_functions_not_listed | Takeshi KOMIYA | 2020-01-19 | 1 | -3/+9 |
| | |\ \ | | | |/ | | | | | #7023: autodoc: nested partial functions are not listed | ||||
| | | * | Fix #7023: autodoc: nested partial functions are not listed | Takeshi KOMIYA | 2020-01-17 | 1 | -3/+9 |
| | | | | |||||
| | * | | Add testcase a partialmethod not having docstring (refs: #7023) | Takeshi KOMIYA | 2020-01-17 | 1 | -3/+32 |
| | |/ | |||||
| * | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-11 | 1 | -7/+2 |
| |\ \ | | |/ | |||||
| | * | refactor: Add sphinx.util.inspect.signature() | Takeshi KOMIYA | 2020-01-09 | 1 | -7/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a successor of sphinx.util.inspect.Singnature, this adds signature() function behaves like `inspect.signature()`. It is very similar to way of python's inspect module. In addition, this also adds stringify_annotation() helper to sphinx.util.inspect module. With these two functions, we can move to python's Signature object to represent function signatures perfectly. It's natural design for python developers than ever. | ||||
| * | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | A happy new year! | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 |
| | | | |||||
| * | | Close #5923: autodoc: allow not to document inherited members of specific ↵ | Takeshi KOMIYA | 2019-12-01 | 1 | -0/+24 |
| |/ | | | | | | | super class | ||||
| * | Merge branch '2.1.1' into 2.0 | Takeshi KOMIYA | 2019-06-10 | 1 | -24/+0 |
| |\ | |||||
| | * | Revert "Fix #1063: autodoc: automodule directive handles undocumented module ↵ | Takeshi KOMIYA | 2019-06-10 | 1 | -24/+0 |
| | | | | | | | | | | | | | | | | | | | | | level variables" This reverts commit 69d93c967c591a65f10bcb9cb07e03d5cf03cce6 (without CHANGES). | ||||
| * | | test: Update testcase for autoclass_content and autodoc_docstring_signature | Takeshi KOMIYA | 2019-06-03 | 1 | -33/+0 |
| | | |