Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -3/+3 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -3/+3 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -9/+9 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Reduce complexity by removing recursion. | Christian Walch | 2022-04-01 | 1 | -2/+4 |
| | |||||
* | Move method `isboundmethod()` into sphinx/util/inspect.py. | Christian Walch | 2022-04-01 | 1 | -9/+1 |
| | |||||
* | Rename function `_method_is_bound()` -> `isboundmethod()`. | Christian Walch | 2022-04-01 | 1 | -2/+2 |
| | |||||
* | Add types and docstring to function `_method_is_bound()`. | Christian Walch | 2022-03-31 | 1 | -1/+2 |
| | |||||
* | Add unwittingly removed empty line. | Christian Walch | 2022-03-31 | 1 | -0/+1 |
| | |||||
* | Use recursive call to `ismock()` on unbound method instead of using ↵ | Christian Walch | 2022-03-31 | 1 | -4/+2 |
| | | | | temporary object. | ||||
* | Closes #10310: Sphinx automodule: class method not documented when decorated ↵ | Christian Walch | 2022-03-31 | 1 | -3/+15 |
| | | | | with mocked function. | ||||
* | Collapse single line docstrings | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | |||||
* | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -2/+2 |
| | |||||
* | Fix module docstring first line | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 1 | -3/+0 |
| | |||||
* | Fix #10133: autodoc: Crashed when mocked module is used for type annotation | Takeshi KOMIYA | 2022-01-30 | 1 | -0/+5 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | |||||
* | Fix #9883: autodoc: doccomment for the alias to mocked object was ignored | Takeshi KOMIYA | 2021-11-29 | 1 | -1/+2 |
| | |||||
* | Fix #9657: autodoc: basecls for a subclass of mocked object is incorrect | Takeshi KOMIYA | 2021-09-21 | 1 | -1/+3 |
| | |||||
* | refactor: Use PEP-526 based variable annotation (sphinx.ext) | Takeshi KOMIYA | 2021-03-15 | 1 | -4/+4 |
| | |||||
* | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-28 | 1 | -7/+20 |
|\ | |||||
| * | Fix #8134: autodoc: crashes when mocked decorator takes arguments | Takeshi KOMIYA | 2021-01-24 | 1 | -7/+20 |
| | | | | | | | | | | | | | | | | | | | | autodoc crashed when a decorator in mocked module takes arguments because mock system returns the first argument for the decorator as a decorated object. This changes the approach for mocking decorators that remembers arguments for each decoration, and fetch the latest argument on generating document. | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-08 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Fix #8655: autodoc: Crashes when object raises an exception on hasattr() | Takeshi KOMIYA | 2021-01-05 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | autodoc crashes when the target object raises an exception on `hasattr()`. The `hasattr()` function internally calls the `obj.__getattr__()` or `obj.__getattribute__()` of the target object. Hence the reaction can be changed on the target object. This starts to use `safe_getattr()` to check the object is mocked or not and to prevent an unexpected error. | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-12-29 | 1 | -0/+22 |
|\ \ | |/ | |||||
| * | autodoc: Add a helper that checks the object is mocked; ismock() | Takeshi KOMIYA | 2020-12-28 | 1 | -0/+22 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-07-05 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Fix #7886: autodoc: TypeError is raised on mocking generic-typed classes | Takeshi KOMIYA | 2020-06-30 | 1 | -2/+2 |
| | | |||||
* | | refactor: Update type annotations | Takeshi KOMIYA | 2020-05-02 | 1 | -3/+3 |
|/ | |||||
* | Fix #7479: autodoc: Sphinx builds has been slower since 3.0.0 | Takeshi KOMIYA | 2020-04-19 | 1 | -0/+2 |
| | | | | | | Call ``inspect.unwrap()`` for Mocked objects and modules causes deep recurrsion calls. As a result, it causes slow builds. This skips to try documenting mocked objects on filtering members. | ||||
* | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-11 | 1 | -1/+1 |
|\ | |||||
| * | refactor: Rename var keyword argument to "**kwargs" | Takeshi KOMIYA | 2020-01-08 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-01 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | 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 | -3/+3 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-10-20 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix #6709: autodoc: mock object does not work as a class decorator | Takeshi KOMIYA | 2019-10-06 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-07-01 | 1 | -46/+24 |
|\ \ | |/ | |||||
| * | Migrate to py3 style type annotation: sphinx.ext.autodoc.mock | Takeshi KOMIYA | 2019-07-01 | 1 | -54/+28 |
| | | |||||
* | | Drop features and APIs deprecated in 1.8 | Takeshi KOMIYA | 2019-03-30 | 1 | -50/+2 |
|/ | |||||
* | Python-3-only clean ups discovered by pyupgrade | Jon Dufresne | 2019-03-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension | ||||
* | refactor: Move implementation of mock to sphinx.ext.autodoc.mock | Takeshi KOMIYA | 2019-02-27 | 1 | -0/+217 |