silence latest spurious lgtm warnings

This commit is contained in:
jab 2018-07-17 02:20:14 +00:00
parent 51cce7d264
commit 60dabe9881
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ PYPY = PYIMPL == 'PyPy'
DICTS_ORDERED = PYPY or (CPY and (PYMAJOR, PYMINOR) >= (3, 6))
# Without the following, pylint gives lots of false positives.
# pylint: disable=invalid-name,unused-import,ungrouped-imports
# pylint: disable=invalid-name,unused-import,ungrouped-imports,no-name-in-module
if PY2:
@ -78,11 +78,11 @@ if PY2:
# Before 3.3, this silently fails to detect when an abstract property has not been overridden.
from abc import abstractproperty
from itertools import izip # pylint: disable=no-name-in-module
from itertools import izip
# In Python 3, the collections ABCs were moved into collections.abc, which does not exist in
# Python 2. Support for importing them directly from collections is dropped in Python 3.8.
from collections import ( # pylint: disable=no-name-in-module; noqa: F401 (imported but unused)
from collections import ( # lgtm [py/unused-import]; noqa: F401 (imported but unused)
Mapping, MutableMapping, KeysView, ItemsView)
else:
@ -106,5 +106,5 @@ else:
izip = zip
from collections.abc import ( # noqa: F401 (imported but unused)
from collections.abc import ( # noqa: F401; lgtm [py/unused-import]
Mapping, MutableMapping, KeysView, ItemsView)

View File

@ -26,7 +26,7 @@ except (ImportError, ValueError, SystemError): # pragma: no cover
try:
__version_info__ = tuple(int(p) if i < 3 else p for (i, p) in enumerate(__version__.split('.')))
except: # noqa: E722; pragma: no cover; pylint: disable=bare-except
except Exception: # noqa: E722; pragma: no cover; pylint: disable=broad-except
__vesion_info__ = (0, 0, 0, 'PARSE FAILURE: __version__=%s' % __version__)
__author__ = u'Joshua Bronson'