summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-12 02:05:13 +0900
committerGitHub <noreply@github.com>2020-11-12 02:05:13 +0900
commit68cc0f7e94f360a2c62ebcb761f8096e04ebf07f (patch)
tree37b1da3654ece6803efd0a2ed356fbbff3fc276a /sphinx/domains/cpp.py
parent229e11c488fc1fbd15b0a209782aa94dc6abdf58 (diff)
parent0949735210abaa05b6448e531984f159403053f4 (diff)
downloadsphinx-git-68cc0f7e94f360a2c62ebcb761f8096e04ebf07f.tar.gz
Merge pull request #8408 from francoisfreitag/isort
Sort imports with isort
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py22
1 files changed, 9 insertions, 13 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 72d425035..35df74027 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -9,9 +9,8 @@
"""
import re
-from typing import (
- Any, Callable, Dict, Generator, Iterator, List, Tuple, Type, TypeVar, Union, Optional
-)
+from typing import (Any, Callable, Dict, Generator, Iterator, List, Optional, Tuple, Type,
+ TypeVar, Union)
from docutils import nodes
from docutils.nodes import Element, Node, TextElement, system_message
@@ -30,20 +29,17 @@ from sphinx.roles import SphinxRole, XRefRole
from sphinx.transforms import SphinxTransform
from sphinx.transforms.post_transforms import ReferencesResolver
from sphinx.util import logging
-from sphinx.util.cfamily import (
- NoOldIdError, ASTBaseBase, ASTAttribute, ASTBaseParenExprList,
- verify_description_mode, StringifyTransform,
- BaseParser, DefinitionError, UnsupportedMultiCharacterCharLiteral,
- identifier_re, anon_identifier_re, integer_literal_re, octal_literal_re,
- hex_literal_re, binary_literal_re, integers_literal_suffix_re,
- float_literal_re, float_literal_suffix_re,
- char_literal_re
-)
+from sphinx.util.cfamily import (ASTAttribute, ASTBaseBase, ASTBaseParenExprList, BaseParser,
+ DefinitionError, NoOldIdError, StringifyTransform,
+ UnsupportedMultiCharacterCharLiteral, anon_identifier_re,
+ binary_literal_re, char_literal_re, float_literal_re,
+ float_literal_suffix_re, hex_literal_re, identifier_re,
+ integer_literal_re, integers_literal_suffix_re,
+ octal_literal_re, verify_description_mode)
from sphinx.util.docfields import Field, GroupedField
from sphinx.util.docutils import SphinxDirective
from sphinx.util.nodes import make_refnode
-
logger = logging.getLogger(__name__)
T = TypeVar('T')