diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-07 21:37:44 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-12 20:07:51 +0300 |
commit | da5b8e41e337064028fb5b321155a8933c91f819 (patch) | |
tree | 4ee814fd12cdda4bfdff324a1fa5fb701e2b9cc5 /sphinx/addnodes.py | |
parent | a840b9e4d6fcf4c9144ac7ca7e15ac66cf5545df (diff) |
Decl styling, fixes from review
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r-- | sphinx/addnodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py index 5d26643ed..a2fb776e4 100644 --- a/sphinx/addnodes.py +++ b/sphinx/addnodes.py @@ -119,13 +119,13 @@ class toctree(nodes.General, nodes.Element, translatable): # Domain-specific object descriptions (class, function etc.) ############################################################# -class _desc_classes_injector(nodes.TextElement): +class _desc_classes_injector(nodes.Element): """Helper base class for injecting a fixes list of classes. Use as the first base class. """ - classes = [] # type: List[str] + classes: List[str] = [] def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) |