summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/importer.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | _MockModule and _MockObject now display meaningful names in type annotations ↵Max2018-09-071-10/+27
|/ | | | and superclass names
* Close #2820: autoclass directive supports nested classTakeshi KOMIYA2018-07-221-2/+15
|
* Merge branch '1.7'Takeshi KOMIYA2018-07-171-2/+11
|\
| * Fix #5139: autodoc: Enum argument missing if it shares value with anotherTakeshi KOMIYA2018-07-151-2/+11
| |
* | Merge branch 1.7shimizukawa2018-05-251-4/+4
|\ \ | |/
| * Fix #4931: autodoc: crashed when subclass of mocked class are processed by ↵Takeshi KOMIYA2018-05-241-4/+4
| | | | | | | | napoleon module
* | Merge branch '1.7'Takeshi KOMIYA2018-05-211-1/+13
|\ \ | |/
| * Fix #4956: autodoc: Failed to extract document from a subclass of the class ↵Takeshi KOMIYA2018-05-211-1/+13
| | | | | | | | on mocked module
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-231-1/+1
|\ \ | |/
| * Fix error reporting for parameterless ImportErrorsadam-azarchs2018-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In some cases, a module may raise an ImportError without any arguments, e.g. if not_allowed(): raise ImportError In this case, the exception has no args. This is bad practice, but it happens. Currently, autodoc will crash with IndexError: tuple index out of range
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-0/+2
|/
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-2/+2
|
* autodoc: prefer _MockImporter over other importers in sys.pathRouven Czerwinski2018-01-271-1/+1
| | | | | | | In case we want to mock modules which are actually available in the current environment, we need to add the _MockImporter before other importers. We ran into this problem in our application, where importing the existing modules caused side effects which were not fixed by autodoc_mock_imports.
* autodoc: only mock specified modules with their descendantsRobin Jarry2018-01-131-11/+6
| | | | | | | | | | Do not mock the ancestors of the specified modules in autodoc_mock_imports. Only mock the modules themselves and their descendants (as specified in the docs). Fix the test configs accordingly. Signed-off-by: Robin Jarry <robin@jarry.cc>
* Fix enum34 members are treated as inherited memberTakeshi KOMIYA2018-01-061-1/+7
|
* Fix mypy violationTakeshi KOMIYA2018-01-061-1/+1
|
* autodoc: Refactor get_object_members()Takeshi KOMIYA2018-01-011-1/+32
|
* Refactor: Add import_object()Takeshi KOMIYA2018-01-011-1/+51
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* autodoc: Fix error handling for import_module()Takeshi KOMIYA2017-12-141-2/+2
|
* autodoc: refactor MockImporterTakeshi KOMIYA2017-12-141-3/+13
|
* Fix issue in import_module returning wrong modulePauli Virtanen2017-11-111-1/+2
|
* Fix flake8 violationTakeshi KOMIYA2017-11-111-1/+1
|
* Move import_module() to sphinx.ext.autodoc.importerTakeshi KOMIYA2017-11-111-0/+17
|
* Separate autodoc.pyTakeshi KOMIYA2017-06-171-0/+118