Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-04-13 | 1 | -2/+11 | |
|\ \ | |/ | ||||||
| * | Fix #7422: autodoc: fails with ValueError when using autodoc_mock_imports | Takeshi KOMIYA | 2020-04-08 | 1 | -2/+11 | |
| | | ||||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-04-06 | 1 | -15/+26 | |
|\ \ | |/ | ||||||
| * | Fix flake8 error | Takeshi KOMIYA | 2020-04-05 | 1 | -1/+1 | |
| | | ||||||
| * | Merge branch '2.x' into 3.0.x | Takeshi KOMIYA | 2020-04-05 | 1 | -15/+26 | |
| |\ | ||||||
| | * | Fix: autodoc: `__wrapped__` functions are not documented correctly | Terence D. Honles | 2020-02-27 | 1 | -14/+25 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
* | | | Merge branch '3.x' | Takeshi KOMIYA | 2020-03-23 | 1 | -0/+11 | |
|\ \ \ | |/ / | ||||||
| * | | Fix a cyfunction was considered as an attribute descriptor | Takeshi KOMIYA | 2020-03-22 | 1 | -0/+11 | |
| | | | ||||||
* | | | Merge branch '3.x' | Takeshi KOMIYA | 2020-03-10 | 1 | -0/+20 | |
|\ \ \ | |/ / | ||||||
| * | | autodoc: Support singledispatch methods | Takeshi KOMIYA | 2020-03-07 | 1 | -0/+9 | |
| | | | ||||||
| * | | Close #2815: autodoc: Support singledispatch functions | Takeshi KOMIYA | 2020-03-07 | 1 | -0/+11 | |
| | | | ||||||
* | | | Deprecate codes for python 3.5 | Takeshi KOMIYA | 2020-03-07 | 1 | -1/+1 | |
|/ / | ||||||
* | | Merge branch '2.4.x' into 3.x | Takeshi KOMIYA | 2020-02-22 | 1 | -4/+17 | |
|\ \ | |/ | ||||||
| * | Fix #7189: autodoc: classmethod coroutines are not detected | Takeshi KOMIYA | 2020-02-22 | 1 | -4/+17 | |
| | | ||||||
* | | Merge pull request #7155 from tk0miya/function_signature2 | Takeshi KOMIYA | 2020-02-22 | 1 | -0/+49 | |
|\ \ | | | | | | | py domain: Use AST parser to convert signature to doctree | |||||
| * | | Add sphinx.util.inspect:signature_from_str() | Takeshi KOMIYA | 2020-02-16 | 1 | -0/+49 | |
| | | | ||||||
* | | | Merge branch '2.0' | Takeshi KOMIYA | 2020-02-16 | 1 | -3/+3 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Fix #7156: autodoc: separator for keyword only arguments is not shown | Takeshi KOMIYA | 2020-02-16 | 1 | -3/+3 | |
| | | | ||||||
* | | | refactor: Update type annotations in sphinx.util.* | Takeshi KOMIYA | 2020-02-16 | 1 | -1/+1 | |
| |/ |/| | ||||||
* | | Deprecate sphinx.util.inspect.getargspec() | Takeshi KOMIYA | 2020-02-14 | 1 | -1/+3 | |
| | | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-30 | 1 | -0/+4 | |
|\ \ | |/ | ||||||
| * | Merge branch '2.0' into 6418_autodoc_typehints_description | Takeshi KOMIYA | 2020-01-30 | 1 | -0/+2 | |
| |\ | ||||||
| | * | Deprecate sphinx.util.inspect:safe_getmembers() | Takeshi KOMIYA | 2020-01-25 | 1 | -0/+2 | |
| | | | ||||||
| * | | Add a new extension: sphinx.ext.autodoc.typehints | Takeshi KOMIYA | 2020-01-25 | 1 | -0/+2 | |
| |/ | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-19 | 1 | -34/+38 | |
|\ \ | |/ | ||||||
| * | Fix #7023: autodoc: nested partial functions are not listed | Takeshi KOMIYA | 2020-01-17 | 1 | -6/+14 | |
| | | ||||||
| * | Merge pull request #7012 from tk0miya/support_pep570 | Takeshi KOMIYA | 2020-01-11 | 1 | -5/+11 | |
| |\ | | | | | | | autodoc: Support Positional-Only Argument separator (PEP-570 compliant) | |||||
| | * | autodoc: Support Positional-Only Argument separator (PEP-570 compliant) | Takeshi KOMIYA | 2020-01-11 | 1 | -5/+11 | |
| | | | ||||||
| * | | refactor: Simplify stringify_signature() | Takeshi KOMIYA | 2020-01-11 | 1 | -23/+13 | |
| |/ | ||||||
* | | refactor: replace inspect.Parameter with Parameter | Takeshi KOMIYA | 2020-01-11 | 1 | -11/+11 | |
| | | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-11 | 1 | -6/+109 | |
|\ \ | |/ | ||||||
| * | refactor: Add sphinx.util.inspect.signature() | Takeshi KOMIYA | 2020-01-09 | 1 | -6/+109 | |
| | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | Fix flake8 violations | Takeshi KOMIYA | 2020-01-08 | 1 | -0/+1 | |
| | | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-08 | 1 | -154/+20 | |
|\ \ | |/ | ||||||
| * | Add sphinx.util.typing:stringify() to represent annotations as string | Takeshi KOMIYA | 2020-01-05 | 1 | -155/+20 | |
| | | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-01 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | A happy new year! | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 | |
| | | ||||||
| * | mypy: Enable disallow_incomplete_defs flag for type checking | Takeshi KOMIYA | 2019-12-30 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-10-06 | 1 | -4/+4 | |
|\ \ | |/ | ||||||
| * | Fix mypy violations (for mypy-0.730) | Takeshi KOMIYA | 2019-10-06 | 1 | -4/+4 | |
| | | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-08-19 | 1 | -10/+21 | |
|\ \ | |/ | ||||||
| * | Fix #6605: autodoc: crashed when target code contains custom method-like objects | Takeshi KOMIYA | 2019-08-18 | 1 | -2/+5 | |
| | | ||||||
| * | Merge branch '2.0' into 6574_annotation_for_varidic_params | Takeshi KOMIYA | 2019-08-03 | 1 | -2/+2 | |
| |\ | ||||||
| | * | Fix #6589: autodoc: Formatting issues with autodoc_typehints='none' | Takeshi KOMIYA | 2019-08-02 | 1 | -2/+2 | |
| | | | ||||||
| * | | Merge branch '2.0' into 6574_annotation_for_varidic_params | Takeshi KOMIYA | 2019-08-02 | 1 | -22/+13 | |
| |\ \ | | |/ | ||||||
| * | | Fix autodoc: missing type annotation for variadic and keyword parameters ↵ | Takeshi KOMIYA | 2019-07-13 | 1 | -6/+14 | |
| | | | | | | | | | | | | (refs: #6574) | |||||
* | | | Merge branch '2.0' | jfbu | 2019-08-01 | 1 | -22/+13 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | refactor: sphinx.util.inspect:Signature.format_annotation_old() | Takeshi KOMIYA | 2019-07-14 | 1 | -22/+13 | |
| |/ | ||||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-07-13 | 1 | -4/+4 | |
|\ \ | |/ | ||||||
| * | Merge branch '2.1.3' into 2.0 | Takeshi KOMIYA | 2019-07-13 | 1 | -4/+4 | |
| |\ |