mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix flake8 violations
This commit is contained in:
parent
e6d93e0512
commit
cc70c2def1
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user