| 1 |
========== |
| 2 |
Sphinx 3.4 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 3.4.3 (released Jan 08, 2021) |
| 7 |
===================================== |
| 8 |
|
| 9 |
Bugs fixed |
| 10 |
---------- |
| 11 |
|
| 12 |
* #8655: autodoc: Failed to generate document if target module contains an |
| 13 |
object that raises an exception on ``hasattr()`` |
| 14 |
|
| 15 |
Release 3.4.2 (released Jan 04, 2021) |
| 16 |
===================================== |
| 17 |
|
| 18 |
Bugs fixed |
| 19 |
---------- |
| 20 |
|
| 21 |
* #8164: autodoc: Classes that inherit mocked class are not documented |
| 22 |
* #8602: autodoc: The ``autodoc-process-docstring`` event is emitted to the |
| 23 |
non-datadescriptors unexpectedly |
| 24 |
* #8616: autodoc: AttributeError is raised on non-class object is passed to |
| 25 |
autoclass directive |
| 26 |
|
| 27 |
Release 3.4.1 (released Dec 25, 2020) |
| 28 |
===================================== |
| 29 |
|
| 30 |
Bugs fixed |
| 31 |
---------- |
| 32 |
|
| 33 |
* #8559: autodoc: AttributeError is raised when using forward-reference type |
| 34 |
annotations |
| 35 |
* #8568: autodoc: TypeError is raised on checking slots attribute |
| 36 |
* #8567: autodoc: Instance attributes are incorrectly added to Parent class |
| 37 |
* #8566: autodoc: The ``autodoc-process-docstring`` event is emitted to the |
| 38 |
alias classes unexpectedly |
| 39 |
* #8583: autodoc: Unnecessary object comparison via ``__eq__`` method |
| 40 |
* #8565: linkcheck: Fix PriorityQueue crash when link tuples are not |
| 41 |
comparable |
| 42 |
|
| 43 |
Release 3.4.0 (released Dec 20, 2020) |
| 44 |
===================================== |
| 45 |
|
| 46 |
Incompatible changes |
| 47 |
-------------------- |
| 48 |
|
| 49 |
* #8105: autodoc: the signature of class constructor will be shown for decorated |
| 50 |
classes, not a signature of decorator |
| 51 |
|
| 52 |
Deprecated |
| 53 |
---------- |
| 54 |
|
| 55 |
* The ``follow_wrapped`` argument of ``sphinx.util.inspect.signature()`` |
| 56 |
* The ``no_docstring`` argument of |
| 57 |
``sphinx.ext.autodoc.Documenter.add_content()`` |
| 58 |
* ``sphinx.ext.autodoc.Documenter.get_object_members()`` |
| 59 |
* ``sphinx.ext.autodoc.DataDeclarationDocumenter`` |
| 60 |
* ``sphinx.ext.autodoc.GenericAliasDocumenter`` |
| 61 |
* ``sphinx.ext.autodoc.InstanceAttributeDocumenter`` |
| 62 |
* ``sphinx.ext.autodoc.SlotsAttributeDocumenter`` |
| 63 |
* ``sphinx.ext.autodoc.TypeVarDocumenter`` |
| 64 |
* ``sphinx.ext.autodoc.importer._getannotations()`` |
| 65 |
* ``sphinx.ext.autodoc.importer._getmro()`` |
| 66 |
* ``sphinx.pycode.ModuleAnalyzer.parse()`` |
| 67 |
* ``sphinx.util.osutil.movefile()`` |
| 68 |
* ``sphinx.util.requests.is_ssl_error()`` |
| 69 |
|
| 70 |
Features added |
| 71 |
-------------- |
| 72 |
|
| 73 |
* #8119: autodoc: Allow to determine whether a member not included in |
| 74 |
``__all__`` attribute of the module should be documented or not via |
| 75 |
:event:`autodoc-skip-member` event |
| 76 |
* #8219: autodoc: Parameters for generic class are not shown when super class is |
| 77 |
a generic class and show-inheritance option is given (in Python 3.7 or above) |
| 78 |
* autodoc: Add ``Documenter.config`` as a shortcut to access the config object |
| 79 |
* autodoc: Add ``Optional[t]`` to annotation of function and method if a default |
| 80 |
value equal to ``None`` is set. |
| 81 |
* #8209: autodoc: Add ``:no-value:`` option to :rst:dir:`autoattribute` and |
| 82 |
:rst:dir:`autodata` directive to suppress the default value of the variable |
| 83 |
* #8460: autodoc: Support custom types defined by typing.NewType |
| 84 |
* #8285: napoleon: Add :confval:`napoleon_attr_annotations` to merge type hints |
| 85 |
on source code automatically if any type is specified in docstring |
| 86 |
* #8236: napoleon: Support numpydoc's "Receives" section |
| 87 |
* #6914: Add a new event :event:`warn-missing-reference` to custom warning |
| 88 |
messages when failed to resolve a cross-reference |
| 89 |
* #6914: Emit a detailed warning when failed to resolve a ``:ref:`` reference |
| 90 |
* #6629: linkcheck: The builder now handles rate limits. See |
| 91 |
:confval:`linkcheck_rate_limit_timeout` for details. |
| 92 |
|
| 93 |
Bugs fixed |
| 94 |
---------- |
| 95 |
|
| 96 |
* #7613: autodoc: autodoc does not respect __signature__ of the class |
| 97 |
* #4606: autodoc: the location of the warning is incorrect for inherited method |
| 98 |
* #8105: autodoc: the signature of class constructor is incorrect if the class |
| 99 |
is decorated |
| 100 |
* #8434: autodoc: :confval:`autodoc_type_aliases` does not effect to variables |
| 101 |
and attributes |
| 102 |
* #8443: autodoc: autodata directive can't create document for PEP-526 based |
| 103 |
type annotated variables |
| 104 |
* #8443: autodoc: autoattribute directive can't create document for PEP-526 |
| 105 |
based uninitialized variables |
| 106 |
* #8480: autodoc: autoattribute could not create document for __slots__ |
| 107 |
attributes |
| 108 |
* #8503: autodoc: autoattribute could not create document for a GenericAlias as |
| 109 |
class attributes correctly |
| 110 |
* #8534: autodoc: autoattribute could not create document for a commented |
| 111 |
attribute in alias class |
| 112 |
* #8452: autodoc: autodoc_type_aliases doesn't work when autodoc_typehints is |
| 113 |
set to "description" |
| 114 |
* #8541: autodoc: autodoc_type_aliases doesn't work for the type annotation to |
| 115 |
instance attributes |
| 116 |
* #8460: autodoc: autodata and autoattribute directives do not display type |
| 117 |
information of TypeVars |
| 118 |
* #8493: autodoc: references to builtins not working in class aliases |
| 119 |
* #8522: autodoc: ``__bool__`` method could be called |
| 120 |
* #8067: autodoc: A typehint for the instance variable having type_comment on |
| 121 |
super class is not displayed |
| 122 |
* #8545: autodoc: a __slots__ attribute is not documented even having docstring |
| 123 |
* #741: autodoc: inherited-members doesn't work for instance attributes on super |
| 124 |
class |
| 125 |
* #8477: autosummary: non utf-8 reST files are generated when template contains |
| 126 |
multibyte characters |
| 127 |
* #8501: autosummary: summary extraction splits text after "el at." unexpectedly |
| 128 |
* #8524: html: Wrong url_root has been generated on a document named "index" |
| 129 |
* #8419: html search: Do not load ``language_data.js`` in non-search pages |
| 130 |
* #8549: i18n: ``-D gettext_compact=0`` is no longer working |
| 131 |
* #8454: graphviz: The layout option for graph and digraph directives don't work |
| 132 |
* #8131: linkcheck: Use GET when HEAD requests cause Too Many Redirects, to |
| 133 |
accommodate infinite redirect loops on HEAD |
| 134 |
* #8437: Makefile: ``make clean`` with empty BUILDDIR is dangerous |
| 135 |
* #8365: py domain: ``:type:`` and ``:rtype:`` gives false ambiguous class |
| 136 |
lookup warnings |
| 137 |
* #8352: std domain: Failed to parse an option that starts with bracket |
| 138 |
* #8519: LaTeX: Prevent page brake in the middle of a seealso |
| 139 |
* #8520: C, fix copying of AliasNode. |