diff options
author | François Freitag <mail@franek.fr> | 2020-11-11 12:00:27 +0100 |
---|---|---|
committer | François Freitag <mail@franek.fr> | 2020-11-11 13:19:05 +0100 |
commit | 0949735210abaa05b6448e531984f159403053f4 (patch) | |
tree | 3561f378bc9fa97a73ad5b298e4bcd669827a044 /sphinx/util/nodes.py | |
parent | e2c969c4955662a8c5e4da8b77672aaaa7729359 (diff) | |
download | sphinx-git-0949735210abaa05b6448e531984f159403053f4.tar.gz |
Sort imports with isort
Keep imports alphabetically sorted and their order homogeneous across
Python source files.
The isort project has more feature and is more active than the
flake8-import-order plugin.
Most issues caught were simply import ordering from the same module.
Where imports were purposefully placed out of order, tag with
isort:skip.
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r-- | sphinx/util/nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index b4d796f61..05e9cb7b2 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -11,8 +11,7 @@ import re import unicodedata import warnings -from typing import Any, Callable, Iterable, List, Set, Tuple -from typing import cast +from typing import Any, Callable, Iterable, List, Set, Tuple, cast from docutils import nodes from docutils.nodes import Element, Node @@ -28,6 +27,7 @@ from sphinx.util import logging if False: # For type annotation from typing import Type # for python3.5.1 + from sphinx.builders import Builder from sphinx.domain import IndexEntry from sphinx.environment import BuildEnvironment |