Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix COM812 | Adam Turner | 2023-02-18 | 1 | -1/+1 |
| | |||||
* | Adopt ``profile = "black"`` for ``isort`` | Adam Turner | 2023-01-07 | 1 | -2/+8 |
| | | | | This allows using Ruff's import sorting fixers | ||||
* | 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 | -8/+8 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Tighten mypy 'strict optional' whitelist (#11038) | danieleades | 2022-12-29 | 1 | -2/+6 |
| | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> | ||||
* | Remove traces of Python 2 and 3.5 (#10560) | Adam Turner | 2022-06-16 | 1 | -5/+2 |
| | |||||
* | Fix documenting inherited attributes | Adam Turner | 2022-06-08 | 1 | -2/+7 |
| | |||||
* | Set the docstring attribute of class members. Fixes #8180. | Anselm Kruis | 2022-05-23 | 1 | -1/+8 |
| | | | | | Change ext.autodoc.importer.get_class_members to set ObjectMember.docstring the docstring found by the source code analyzer. | ||||
* | Remove deprecated code for Sphinx 5.0 | Adam Turner | 2022-04-17 | 1 | -25/+1 |
| | |||||
* | 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 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | |||||
* | Improve sphinx.ext.autodoc docstrings | Louis Maddox | 2021-07-18 | 1 | -2/+2 |
| | |||||
* | 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. | ||||
* | refactor: Use PEP-526 based variable annotation (sphinx.ext) | Takeshi KOMIYA | 2021-03-15 | 1 | -3/+3 |
| | |||||
* | Merge branch '3.x' into master_with_merged_3.x | jfbu | 2021-02-02 | 1 | -27/+29 |
|\ | |||||
| * | Fix #8800: autodoc: Uninitialized attributes in superclass are recognized as ↵ | Takeshi KOMIYA | 2021-02-01 | 1 | -8/+19 |
| | | | | | | | | | | | | | | | | undocumented Unintentionally, uninitialized attributes defined at superclasses are recognized as undocumented in the filtering step. Therefore, they are filtered if `:undoc-members:` option given. | ||||
| * | refactor: AttributeError handling for getslots() is not needed | Takeshi KOMIYA | 2021-01-31 | 1 | -2/+2 |
| | | |||||
| * | refactor: AttributeError handling for getannotations() is not needed | Takeshi KOMIYA | 2021-01-31 | 1 | -20/+11 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-28 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Fix #8134: autodoc: crashes when mocked decorator takes arguments | Takeshi KOMIYA | 2021-01-24 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | 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-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Merge branch '3.4.x' into 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-31 | 1 | -21/+14 |
|\ \ \ | |/ / | |||||
| * | | refactor: autodoc: Replace ClassAttribute by ObjectMember | Takeshi KOMIYA | 2020-12-30 | 1 | -21/+14 |
| | | | | | | | | | | | | | | | | | | After the series of refactoring, it would be better to use ObjectMember directly inside get_class_members(). And ClassAttribute is no longer needed. | ||||
* | | | Merge branch '3.x' | Takeshi KOMIYA | 2020-12-29 | 1 | -0/+4 |
|\ \ \ | |/ / | |||||
| * | | Fix #8592: autodoc: `:meta public:` does not effect to variables | Takeshi KOMIYA | 2020-12-27 | 1 | -1/+5 |
| |/ | | | | | | | | | | | | | To control the visibility of variables, ModuleDocumenter have to load docstring of them on `get_object_members()` phase. This reimplements it and `get_module_members()` helper to fetch docstring on earlier phase (as ClassDocumenter does). | ||||
* | | Remove deprecated function: sphinx.ext.autodoc.importer:_getmro() | Takeshi KOMIYA | 2020-12-20 | 1 | -6/+0 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-12-20 | 1 | -9/+92 |
|\ \ | |/ | |||||
| * | Fix #741: autodoc: inherited-members doesn't support instance attributes on ↵ | Takeshi KOMIYA | 2020-12-18 | 1 | -20/+28 |
| | | | | | | | | | | | | | | | | | | super class To support instance attributes on super class, get_class_members() scans the instance attributes defined at super classes using ModuleAnalyzer. It allows to generate document for them when users gives : inherited-members: option. | ||||
| * | Fix #8545: autodoc: a __slots__ attribute is not documented even having ↵ | Takeshi KOMIYA | 2020-12-17 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | docstring To avoid filtering __slots__ attributes having docstring at filter_members(), this passes docstring captured at get_class_members() to the filter_members() via ObjectMember. | ||||
| * | refactor: get_class_members() now returns docstring if available | Takeshi KOMIYA | 2020-12-17 | 1 | -13/+25 |
| | | | | | | | | | | To detect a __slots__ attribute has docstring, get_class_members() returns the docstring of the class member. | ||||
| * | refactor: autodoc: Add get_class_members() | Takeshi KOMIYA | 2020-12-17 | 1 | -0/+64 |
| | | | | | | | | | | | | To enhance ClassDocumenter, Add a new helper function get_class_members(). At this moment, it is a copy of get_object_members(). It will be changed to return more detailed information of class members. | ||||
| * | refactor: Move _getmro() to sphinx.util.inspect module | Takeshi KOMIYA | 2020-12-17 | 1 | -8/+6 |
| | | |||||
* | | Fix flake8 warnings | Takeshi KOMIYA | 2020-11-25 | 1 | -7/+1 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-11-22 | 1 | -14/+16 |
|\ \ | |/ | |||||
| * | refactor: Move _getannotations() to sphinx.util.inspect | Takeshi KOMIYA | 2020-11-22 | 1 | -13/+15 |
| | | |||||
| * | Handle AttributeError from getall() and getslots() | Takeshi KOMIYA | 2020-11-21 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-11-21 | 1 | -9/+10 |
|\ \ | |/ | |||||
| * | autodoc: refactor __slots__ operations using getslots() | Takeshi KOMIYA | 2020-11-15 | 1 | -9/+10 |
| | | |||||
| * | Sort imports with isort | François Freitag | 2020-11-11 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip. | ||||
* | | Merge branch '3.x' into master | Takeshi KOMIYA | 2020-10-28 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | autodoc: check whether __slots__ is a str | Matthias Geier | 2020-10-24 | 1 | -1/+4 |
| | | | | | | | | Closes #8294. | ||||
* | | Merge branch '3.x' | Takeshi KOMIYA | 2020-08-08 | 1 | -4/+26 |
|\ \ | |/ |