Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Separate autodoc.py | Takeshi KOMIYA | 2017-06-17 | 1 | -1894/+0 |
| | |||||
* | Replace getargspec by Signature class in autodoc module | Takeshi KOMIYA | 2017-06-17 | 1 | -15/+7 |
| | |||||
* | Fix #3779: 'ImportError' in sphinx.ext.autodoc due to broken 'sys.meta_path' | Tatiana Tereshchenko | 2017-05-24 | 1 | -3/+2 |
| | |||||
* | Update type annotations for new mypy | Takeshi KOMIYA | 2017-05-07 | 1 | -1/+1 |
| | |||||
* | Merge branch 'stable' into 1.6-release | Takeshi KOMIYA | 2017-04-25 | 1 | -4/+13 |
|\ | |||||
| * | Fix #3618: autodoc crashes with tupled arguments | Takeshi KOMIYA | 2017-04-11 | 1 | -4/+13 |
| | | |||||
* | | Use inspect instead of checking types | Jeroen Demeyer | 2017-04-19 | 1 | -5/+8 |
| | | |||||
* | | ext: enhance autodoc_mock_imports | Robin Jarry | 2017-04-18 | 1 | -35/+89 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The autodoc_mock_imports option requires to explicitly declare *every* external module and sub-module that are imported by the documented code. This is not practical as the list can become very large and must be maintained as the code changes. Also, the mocking is minimal which causes errors when compiling the docs. For example, if you declare: autodoc_mock_imports = ['django.template'] And try to document a module: .. automodule:: my.lib.util Which contains this code: from django.template import Library register = Library() The following error occurs: File ".../my/lib/util.py" line 2 register = Library() TypeError: 'object' object is not callable Other similar errors can occur such as "TypeError: 'object' object has no len". To address these limitations, only require to declare the top-level module that should be mocked: autodoc_mock_imports = ['django'] Will mock "django" but also any sub-module: "django.template", "django.contrib", etc. Also, make the mocked modules yield more complete dummy objects to avoid these TypeError problems. Behind the scenes, it uses the python import hooks mechanism specified in PEP 302. Signed-off-by: Robin Jarry <robin@jarry.cc> | ||||
* | | Merge branch 'stable' | Takeshi KOMIYA | 2017-03-26 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Year++ | Takeshi KOMIYA | 2017-03-26 | 1 | -1/+1 |
| | | |||||
* | | Upgrade to mypy-0.5 | Takeshi KOMIYA | 2017-03-03 | 1 | -4/+4 |
| | | |||||
* | | Add mypy annotations | Takeshi KOMIYA | 2017-02-10 | 1 | -0/+3 |
| | | |||||
* | | Fix mypy violations | Takeshi KOMIYA | 2017-02-08 | 1 | -1/+1 |
| | | |||||
* | | Remove unused "type: ignore" | Takeshi KOMIYA | 2017-02-06 | 1 | -2/+2 |
| | | |||||
* | | Drop debug2() (refs: #3304) | Takeshi KOMIYA | 2017-01-07 | 1 | -1/+1 |
| | | |||||
* | | Use sphinx.util.logging instead app.info(), verbose(), debug() and debug2() | Takeshi KOMIYA | 2017-01-02 | 1 | -13/+15 |
| | | |||||
* | | Merge branch 'stable' | jfbu | 2016-12-17 | 1 | -1/+10 |
|\ \ | |/ | |||||
| * | Fix #3255: In Py3.4 environment, autodoc doesn't support documentation for ↵ | shimizukawa | 2016-12-17 | 1 | -1/+10 |
| | | | | | | | | attributes of Enum class correctly. | ||||
* | | Merge branch 'stable' | Takeshi KOMIYA | 2016-12-17 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Reduce deprecation warnings (refs: #3192) | Takeshi KOMIYA | 2016-12-15 | 1 | -1/+4 |
| | | |||||
* | | ``sphinx.util.compat.Directive`` class is now deprecated. | Takeshi KOMIYA | 2016-12-13 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '1.5-release' into master | shimizukawa | 2016-12-05 | 1 | -3/+11 |
|\ \ | |/ | |||||
| * | Merge branch 'stable' into 1.5-release | Takeshi KOMIYA | 2016-12-03 | 1 | -3/+11 |
| |\ | |||||
| | * | Merge branch 'fix-attr-documenter' into stable | shimizukawa | 2016-11-24 | 1 | -3/+11 |
| | |\ | |||||
| | | * | Fix documentation of descriptor classes that have a custom metaclass | Erik M. Bray | 2015-04-09 | 1 | -3/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (i.e. a subclass of type). This avoids using string comparisons to do type checks, except in the case of the fix for #1155, since in Python 3 there really seems to be no way to export the instancemethod type, short of using ctypes. | ||||
* | | | | Add type-check annotations to sphinx.ext | Takeshi KOMIYA | 2016-11-16 | 1 | -45/+147 |
|/ / / | |||||
* | | | Merge branch 'stable' into 1.5-release | Takeshi KOMIYA | 2016-11-16 | 1 | -0/+1 |
|\ \ \ | |/ / | |||||
| * | | insert blank line(s) to adapt latest flake8/pycodestyle | shimizukawa | 2016-11-16 | 1 | -0/+1 |
| | | | |||||
* | | | Merge branch 'stable' into 1.5-release | Takeshi KOMIYA | 2016-11-13 | 1 | -1/+3 |
|\ \ \ | |/ / | |||||
| * | | Fix #3135: ``sphinx.ext.autodoc`` crashes with plain Callable | Takeshi KOMIYA | 2016-11-13 | 1 | -1/+3 |
| | | | |||||
| * | | Fix py3.6b3 crashes with empty Callable annotation | Takeshi KOMIYA | 2016-11-06 | 1 | -1/+1 |
| | | | |||||
| * | | Fix #3111: autodoc crashes with python3.6b3 | Takeshi KOMIYA | 2016-11-02 | 1 | -1/+8 |
| | | | | | | | | | | | | Since 3.6b3, structure of typing.Callable has been changed. | ||||
* | | | Fix py3.6b3 crashes with empty Callable annotation | Takeshi KOMIYA | 2016-11-03 | 1 | -1/+1 |
| | | | |||||
* | | | Add comment about skipping plain Callable | Alex Grönholm | 2016-11-02 | 1 | -0/+1 |
| | | | |||||
* | | | Fix annotations formatting for plain typing.Callable | Alex Grönholm | 2016-11-02 | 1 | -1/+1 |
| | | | | | | | | | | | | The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable. | ||||
* | | | Merge pull request #3071 from mleinart/autodoc/pass_through_decorators | Takeshi KOMIYA | 2016-11-02 | 1 | -0/+3 |
|\ \ \ | | | | | | | | | Autodoc: Allow mocked module decorators to pass-through functions unchanged | ||||
| * | | | Autodoc: Allow mocked module decorators to pass-through | Michael Leinartas | 2016-10-19 | 1 | -0/+3 |
| | | | | |||||
* | | | | Fix #3111: autodoc crashes with python3.6b3 | Takeshi KOMIYA | 2016-11-02 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | Since 3.6b3, structure of typing.Callable has been changed. | ||||
* | | | | Closes #3060: autodoc supports documentation for attributes of Enum class. ↵ | shimizukawa | 2016-10-28 | 1 | -1/+3 |
|/ / / | | | | | | | | | | Now autodoc render just the value of Enum attributes instead of Enum attribute representation. | ||||
* | | | Merge pull request #2432 from agronholm/kwonlyargs | Takayuki SHIMIZUKAWA | 2016-10-19 | 1 | -1/+3 |
|\ \ \ | | | | | | | | | #2432 Fix unwanted * between varargs and keyword only args | ||||
| * | | | Fix unwanted * between varargs and keyword only args | Alex Grönholm | 2016-04-09 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | The * parameter must only be present when a holder for positional variable arguments is not present. | ||||
* | | | | Merge branch 'stable' | Takeshi KOMIYA | 2016-09-29 | 1 | -3/+3 |
|\ \ \ \ | | |/ / | |/| | | |||||
| * | | | Fix autodoc misdetect typing with py3.6 | Takeshi KOMIYA | 2016-09-29 | 1 | -3/+3 |
| | | | | |||||
* | | | | Update message | Takeshi KOMIYA | 2016-09-29 | 1 | -1/+1 |
| | | | | |||||
* | | | | Fix `sphinx.ext.autodoc` crashes if target code imports * from mock modules ↵ | Takeshi KOMIYA | 2016-08-09 | 1 | -8/+15 |
|/ / / | | | | | | | | | | by `autodoc_mock_imports` | ||||
* | | | ext.autodoc: fix formatting instance annotations | Joost van Zwieten | 2016-08-07 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | Currently `format_annotation` fails on instances, because instances don't have `__module__` and `__qualname__` attributes. Defer building the `qualified_name` of an annotation until we have established that the annotation is a type. | ||||
* | | | Fix #2470: ``typing`` backport package causes autodoc errors with python 2.7 | Takeshi KOMIYA | 2016-05-21 | 1 | -1/+4 |
| | | | |||||
* | | | Adapt to typing private API change in Python 3.5.2 | Dmitry Shachnev | 2016-05-08 | 1 | -3/+11 |
|/ / | | | | | | | Fixes #2519. | ||||
* | | Merge wiht 'stable' | shimizukawa | 2016-02-14 | 1 | -1/+3 |
|\ \ | |||||
| * | | Fix UnicodeDecodeError if autodoc crashed on importing codes including ↵ | Takeshi KOMIYA | 2016-02-11 | 1 | -1/+3 |
| | | | | | | | | | | | | multibyte characters in py2 |