diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-01 11:39:46 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-01 11:39:46 +0900 |
| commit | e628afd5cd0c565f1e33abb01cac26180455182f (patch) | |
| tree | 3b7cddfe175c444588a0b8d9e80430faeb994b8c /sphinx/addnodes.py | |
| parent | 9458d631d0393956005754ed8137809e15635467 (diff) | |
| parent | c5b653433d3fbdca47396f17161685f50d994320 (diff) | |
| download | sphinx-git-e628afd5cd0c565f1e33abb01cac26180455182f.tar.gz | |
Merge branch '2.0'
Diffstat (limited to 'sphinx/addnodes.py')
| -rw-r--r-- | sphinx/addnodes.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py index 7b1edc018..15d5fc46b 100644 --- a/sphinx/addnodes.py +++ b/sphinx/addnodes.py @@ -4,7 +4,7 @@ Additional docutils nodes. - :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -12,6 +12,7 @@ import warnings from typing import Any, Dict, List, Sequence from docutils import nodes +from docutils.nodes import Node from sphinx.deprecation import RemovedInSphinx40Warning @@ -305,7 +306,8 @@ class abbreviation(nodes.abbreviation): .. deprecated:: 2.0 """ - def __init__(self, rawsource: str = '', text: str = '', *children, **attributes) -> None: + def __init__(self, rawsource: str = '', text: str = '', + *children: Node, **attributes: Any) -> None: warnings.warn("abbrevition node for Sphinx was replaced by docutils'.", RemovedInSphinx40Warning, stacklevel=2) |
