The following issues were found
pipenv/patched/notpip/_vendor/packaging/_typing.py
2 issues
Line: 38
Column: 14
else:
# typing's cast() is needed at runtime, but we don't want to import typing.
# Thus, we use a dummy no-op version, which we tell mypy to ignore.
def cast(type_, value): # type: ignore
return value
Reported by Pylint.
Line: 38
Column: 5
else:
# typing's cast() is needed at runtime, but we don't want to import typing.
# Thus, we use a dummy no-op version, which we tell mypy to ignore.
def cast(type_, value): # type: ignore
return value
Reported by Pylint.
pipenv/patched/notpip/_vendor/packaging/__init__.py
2 issues
Line: 6
Column: 1
# for complete details.
from __future__ import absolute_import, division, print_function
from .__about__ import (
__author__,
__copyright__,
__email__,
__license__,
__summary__,
Reported by Pylint.
Line: 1
Column: 1
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
from .__about__ import (
__author__,
__copyright__,
__email__,
Reported by Pylint.
pipenv/patched/notpip/_vendor/idna/package_data.py
2 issues
Line: 1
Column: 1
__version__ = '2.8'
Reported by Pylint.
Line: 2
Column: 1
__version__ = '2.8'
Reported by Pylint.
pipenv/patched/notpip/_vendor/idna/intranges.py
2 issues
Line: 21
Column: 5
sorted_list = sorted(list_)
ranges = []
last_write = -1
for i in range(len(sorted_list)):
if i+1 < len(sorted_list):
if sorted_list[i] == sorted_list[i+1]-1:
continue
current_range = sorted_list[last_write+1:i+1]
ranges.append(_encode_range(current_range[0], current_range[-1] + 1))
Reported by Pylint.
Line: 34
Column: 1
def _encode_range(start, end):
return (start << 32) | end
def _decode_range(r):
return (r >> 32), (r & ((1 << 32) - 1))
def intranges_contain(int_, ranges):
"""Determine if `int_` falls into one of the ranges in `ranges`."""
Reported by Pylint.
pipenv/patched/notpip/_vendor/idna/idnadata.py
2 issues
Line: 1
Column: 1
# This file is automatically generated by tools/idna-data
__version__ = "11.0.0"
scripts = {
'Greek': (
0x37000000374,
0x37500000378,
0x37a0000037e,
0x37f00000380,
Reported by Pylint.
Line: 1
Column: 1
# This file is automatically generated by tools/idna-data
__version__ = "11.0.0"
scripts = {
'Greek': (
0x37000000374,
0x37500000378,
0x37a0000037e,
0x37f00000380,
Reported by Pylint.
pipenv/patched/notpip/_vendor/html5lib/treeadapters/__init__.py
2 issues
Line: 21
Column: 1
"""
from __future__ import absolute_import, division, unicode_literals
from . import sax
__all__ = ["sax"]
try:
from . import genshi # noqa
Reported by Pylint.
Line: 26
Column: 5
__all__ = ["sax"]
try:
from . import genshi # noqa
except ImportError:
pass
else:
__all__.append("genshi")
Reported by Pylint.
pipenv/vendor/pexpect/exceptions.py
2 issues
Line: 11
Column: 9
'''
def __init__(self, value):
super(ExceptionPexpect, self).__init__(value)
self.value = value
def __str__(self):
return str(self.value)
Reported by Pylint.
Line: 17
Column: 5
def __str__(self):
return str(self.value)
def get_trace(self):
'''This returns an abbreviated stack trace with lines that only concern
the caller. In other words, the stack trace inside the Pexpect module
is not included. '''
tblist = traceback.extract_tb(sys.exc_info()[2])
Reported by Pylint.
pipenv/patched/notpip/_vendor/html5lib/_trie/__init__.py
2 issues
Line: 3
Column: 1
from __future__ import absolute_import, division, unicode_literals
from .py import Trie as PyTrie
Trie = PyTrie
# pylint:disable=wrong-import-position
try:
from .datrie import Trie as DATrie
Reported by Pylint.
Line: 1
Column: 1
from __future__ import absolute_import, division, unicode_literals
from .py import Trie as PyTrie
Trie = PyTrie
# pylint:disable=wrong-import-position
try:
from .datrie import Trie as DATrie
Reported by Pylint.
pipenv/patched/notpip/_internal/__init__.py
2 issues
Line: 1
Column: 1
#!/usr/bin/env python
import pipenv.patched.notpip._internal.utils.inject_securetransport # noqa
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Optional, List
def main(args=None):
Reported by Pylint.
Line: 16
Column: 5
For additional details, see https://github.com/pypa/pip/issues/7498.
"""
from pipenv.patched.notpip._internal.utils.entrypoints import _wrapper
return _wrapper(args)
Reported by Pylint.
pipenv/vendor/pip_shims/__init__.py
2 issues
Line: 26
Column: 1
import sys
from . import shims
__version__ = "0.5.3"
if "pip_shims" in sys.modules:
Reported by Pylint.
Line: 40
Column: 61
old_module = sys.modules[__name__]
module = sys.modules[__name__] = sys.modules["pip_shims"] = shims._new()
module.shims = shims
module.__dict__.update(
{
"__file__": __file__,
"__package__": "pip_shims",
Reported by Pylint.