Merge branch '2.1.1' into latex_note_fixallowbreak

This commit is contained in:
jfbu
2019-06-05 17:09:56 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ Bugs fixed
* #6442: LaTeX: admonitions of :rst:dir:`note` type can get separated from
immediately preceding section title by pagebreak
* #6448: autodoc: crashed when autodocumenting classes with ``__slots__ = None``
Testing
--------

View File

@@ -128,7 +128,7 @@ def get_object_members(subject, objpath, attrgetter, analyzer=None):
members[name] = Attribute(name, True, value)
# members in __slots__
if isclass(subject) and hasattr(subject, '__slots__'):
if isclass(subject) and getattr(subject, '__slots__', None) is not None:
from sphinx.ext.autodoc import SLOTSATTR
for name in subject.__slots__: