summaryrefslogtreecommitdiff
path: root/sphinx/environment
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-03-07 01:23:26 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-03-07 01:23:26 +0900
commitba86f4ea7895ff59368a602d43bb85fc4d453546 (patch)
tree76ad826e1deee07e799f1498ba742c3cfa6e5a17 /sphinx/environment
parent4ca5924d4980e5d7120a558954fe916015e6ba9f (diff)
parentfbb7e9d267095c00d58728901d5e5f4f1b7e7fd0 (diff)
downloadsphinx-git-ba86f4ea7895ff59368a602d43bb85fc4d453546.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/environment')
-rw-r--r--sphinx/environment/__init__.py6
-rw-r--r--sphinx/environment/collectors/asset.py3
-rw-r--r--sphinx/environment/collectors/metadata.py1
-rw-r--r--sphinx/environment/collectors/title.py1
-rw-r--r--sphinx/environment/collectors/toctree.py3
5 files changed, 3 insertions, 11 deletions
diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py
index 726c0a8f0..e3d2c1f49 100644
--- a/sphinx/environment/__init__.py
+++ b/sphinx/environment/__init__.py
@@ -32,7 +32,7 @@ from sphinx.util.nodes import is_translatable
if False:
# For type annotation
- from typing import Any, Callable, Dict, IO, Iterator, List, Optional, Pattern, Set, Tuple, Type, Union, Generator # NOQA
+ from typing import Any, Callable, Dict, IO, Iterator, List, Optional, Set, Tuple, Union # NOQA
from docutils import nodes # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.builders import Builder # NOQA
@@ -308,10 +308,6 @@ class BuildEnvironment:
if docname in other.reread_always:
self.reread_always.add(docname)
- for version, changes in other.versionchanges.items():
- self.versionchanges.setdefault(version, []).extend(
- change for change in changes if change[1] in docnames)
-
for domainname, domain in self.domains.items():
domain.merge_domaindata(docnames, other.domaindata[domainname])
app.emit('env-merge-info', self, docnames, other)
diff --git a/sphinx/environment/collectors/asset.py b/sphinx/environment/collectors/asset.py
index 07f4cef4f..a0c009463 100644
--- a/sphinx/environment/collectors/asset.py
+++ b/sphinx/environment/collectors/asset.py
@@ -24,8 +24,7 @@ from sphinx.util.images import guess_mimetype
if False:
# For type annotation
- from typing import Dict, List, Set, Tuple # NOQA
- from docutils import nodes # NOQA
+ from typing import Dict, List, Set # NOQA
from sphinx.sphinx import Sphinx # NOQA
from sphinx.environment import BuildEnvironment # NOQA
diff --git a/sphinx/environment/collectors/metadata.py b/sphinx/environment/collectors/metadata.py
index bba32e7fb..9168e7840 100644
--- a/sphinx/environment/collectors/metadata.py
+++ b/sphinx/environment/collectors/metadata.py
@@ -17,7 +17,6 @@ from sphinx.environment.collectors import EnvironmentCollector
if False:
# For type annotation
from typing import Dict, Set # NOQA
- from docutils import nodes # NOQA
from sphinx.sphinx import Sphinx # NOQA
from sphinx.environment import BuildEnvironment # NOQA
diff --git a/sphinx/environment/collectors/title.py b/sphinx/environment/collectors/title.py
index 12478e9a4..0f43eb0af 100644
--- a/sphinx/environment/collectors/title.py
+++ b/sphinx/environment/collectors/title.py
@@ -16,7 +16,6 @@ from sphinx.transforms import SphinxContentsFilter
if False:
# For type annotation
from typing import Dict, Set # NOQA
- from docutils import nodes # NOQA
from sphinx.sphinx import Sphinx # NOQA
from sphinx.environment import BuildEnvironment # NOQA
diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py
index b4a344c12..53009c753 100644
--- a/sphinx/environment/collectors/toctree.py
+++ b/sphinx/environment/collectors/toctree.py
@@ -21,9 +21,8 @@ from sphinx.util import url_re, logging
if False:
# For type annotation
- from typing import Any, Dict, List, Set, Tuple, Type, TypeVar # NOQA
+ from typing import Dict, List, Set, Tuple, Type, TypeVar # NOQA
from sphinx.application import Sphinx # NOQA
- from sphinx.builders import Builder # NOQA
from sphinx.environment import BuildEnvironment # NOQA
N = TypeVar('N')