summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-01 21:46:53 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-01 21:46:53 +0900
commitcc70c2def167e76f3c51a36252d04cf2631e657f (patch)
tree8f13f8aef01bf721ae9957f39999a8d01ced22cc
parente6d93e05128aedb563232a3e03b874c0d6154cae (diff)
downloadsphinx-git-cc70c2def167e76f3c51a36252d04cf2631e657f.tar.gz
Fix flake8 violations
-rw-r--r--sphinx/__init__.py2
-rw-r--r--sphinx/util/inventory.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/__init__.py b/sphinx/__init__.py
index 66065ce35..52b8d40a3 100644
--- a/sphinx/__init__.py
+++ b/sphinx/__init__.py
@@ -25,7 +25,7 @@ from .deprecation import RemovedInSphinx20Warning
if False:
# For type annotation
# note: Don't use typing.TYPE_CHECK here (for py27 and py34).
- from typing import Any # NOQA
+ from typing import Any, List # NOQA
# by default, all DeprecationWarning under sphinx package will be emit.
diff --git a/sphinx/util/inventory.py b/sphinx/util/inventory.py
index 1f0530d82..5e3923abc 100644
--- a/sphinx/util/inventory.py
+++ b/sphinx/util/inventory.py
@@ -143,11 +143,11 @@ class InventoryFile(object):
if not m:
continue
name, type, prio, location, dispname = m.groups()
- if type == 'py:module' and type in invdata and \
- name in invdata[type]: # due to a bug in 1.1 and below,
- # two inventory entries are created
- # for Python modules, and the first
- # one is correct
+ if type == 'py:module' and type in invdata and name in invdata[type]:
+ # due to a bug in 1.1 and below,
+ # two inventory entries are created
+ # for Python modules, and the first
+ # one is correct
continue
if location.endswith(u'$'):
location = location[:-1] + name