The following issues were found

pipenv/patched/notpip/_vendor/colorama/ansi.py
36 issues
Missing function or method docstring
Error

Line: 12 Column: 1

              BEL = '\007'


def code_to_chars(code):
    return CSI + str(code) + 'm'

def set_title(title):
    return OSC + '2;' + title + BEL


            

Reported by Pylint.

Missing function or method docstring
Error

Line: 15 Column: 1

              def code_to_chars(code):
    return CSI + str(code) + 'm'

def set_title(title):
    return OSC + '2;' + title + BEL

def clear_screen(mode=2):
    return CSI + str(mode) + 'J'


            

Reported by Pylint.

Missing function or method docstring
Error

Line: 18 Column: 1

              def set_title(title):
    return OSC + '2;' + title + BEL

def clear_screen(mode=2):
    return CSI + str(mode) + 'J'

def clear_line(mode=2):
    return CSI + str(mode) + 'K'


            

Reported by Pylint.

Missing function or method docstring
Error

Line: 21 Column: 1

              def clear_screen(mode=2):
    return CSI + str(mode) + 'J'

def clear_line(mode=2):
    return CSI + str(mode) + 'K'


class AnsiCodes(object):
    def __init__(self):

            

Reported by Pylint.

Missing class docstring
Error

Line: 25 Column: 1

                  return CSI + str(mode) + 'K'


class AnsiCodes(object):
    def __init__(self):
        # the subclasses declare class attributes which are numbers.
        # Upon instantiation we define instance attributes, which are the same
        # as the class attributes but wrapped with the ANSI escape sequence
        for name in dir(self):

            

Reported by Pylint.

Class 'AnsiCodes' inherits from object, can be safely removed from bases in python3
Error

Line: 25 Column: 1

                  return CSI + str(mode) + 'K'


class AnsiCodes(object):
    def __init__(self):
        # the subclasses declare class attributes which are numbers.
        # Upon instantiation we define instance attributes, which are the same
        # as the class attributes but wrapped with the ANSI escape sequence
        for name in dir(self):

            

Reported by Pylint.

Too few public methods (0/2)
Error

Line: 25 Column: 1

                  return CSI + str(mode) + 'K'


class AnsiCodes(object):
    def __init__(self):
        # the subclasses declare class attributes which are numbers.
        # Upon instantiation we define instance attributes, which are the same
        # as the class attributes but wrapped with the ANSI escape sequence
        for name in dir(self):

            

Reported by Pylint.

Class 'AnsiCursor' inherits from object, can be safely removed from bases in python3
Error

Line: 36 Column: 1

                              setattr(self, name, code_to_chars(value))


class AnsiCursor(object):
    def UP(self, n=1):
        return CSI + str(n) + 'A'
    def DOWN(self, n=1):
        return CSI + str(n) + 'B'
    def FORWARD(self, n=1):

            

Reported by Pylint.

Missing class docstring
Error

Line: 36 Column: 1

                              setattr(self, name, code_to_chars(value))


class AnsiCursor(object):
    def UP(self, n=1):
        return CSI + str(n) + 'A'
    def DOWN(self, n=1):
        return CSI + str(n) + 'B'
    def FORWARD(self, n=1):

            

Reported by Pylint.

Argument name "n" doesn't conform to snake_case naming style
Error

Line: 37 Column: 5

              

class AnsiCursor(object):
    def UP(self, n=1):
        return CSI + str(n) + 'A'
    def DOWN(self, n=1):
        return CSI + str(n) + 'B'
    def FORWARD(self, n=1):
        return CSI + str(n) + 'C'

            

Reported by Pylint.

pipenv/vendor/cerberus/tests/test_customization.py
36 issues
Unable to import 'pytest'
Error

Line: 3 Column: 1

              # -*- coding: utf-8 -*-

from pytest import mark

import cerberus
from cerberus.tests import assert_fail, assert_success
from cerberus.tests.conftest import sample_schema



            

Reported by Pylint.

Unable to import 'cerberus'
Error

Line: 5 Column: 1

              
from pytest import mark

import cerberus
from cerberus.tests import assert_fail, assert_success
from cerberus.tests.conftest import sample_schema


def test_contextual_data_preservation():

            

Reported by Pylint.

Unable to import 'cerberus.tests'
Error

Line: 6 Column: 1

              from pytest import mark

import cerberus
from cerberus.tests import assert_fail, assert_success
from cerberus.tests.conftest import sample_schema


def test_contextual_data_preservation():
    class InheritedValidator(cerberus.Validator):

            

Reported by Pylint.

Unable to import 'cerberus.tests.conftest'
Error

Line: 7 Column: 1

              
import cerberus
from cerberus.tests import assert_fail, assert_success
from cerberus.tests.conftest import sample_schema


def test_contextual_data_preservation():
    class InheritedValidator(cerberus.Validator):
        def __init__(self, *args, **kwargs):

            

Reported by Pylint.

Unused argument 'value'
Error

Line: 17 Column: 39

                              self.working_dir = kwargs['working_dir']
            super(InheritedValidator, self).__init__(*args, **kwargs)

        def _validate_type_test(self, value):
            if self.working_dir:
                return True

    assert 'test' in InheritedValidator.types
    v = InheritedValidator(

            

Reported by Pylint.

Probable insecure usage of temp file/directory.
Security

Line: 23
Suggestion: https://bandit.readthedocs.io/en/latest/plugins/b108_hardcoded_tmp_directory.html

              
    assert 'test' in InheritedValidator.types
    v = InheritedValidator(
        {'test': {'type': 'list', 'schema': {'type': 'test'}}}, working_dir='/tmp'
    )
    assert_success({'test': ['foo']}, validator=v)


def test_docstring_parsing():

            

Reported by Bandit.

Unnecessary pass statement
Error

Line: 32 Column: 13

                  class CustomValidator(cerberus.Validator):
        def _validate_foo(self, argument, field, value):
            """{'type': 'zap'}"""
            pass

        def _validate_bar(self, value):
            """
            Test the barreness of a value.


            

Reported by Pylint.

Unnecessary pass statement
Error

Line: 41 Column: 13

                          The rule's arguments are validated against this schema:
                {'type': 'boolean'}
            """
            pass

    assert 'foo' in CustomValidator.validation_rules
    assert 'bar' in CustomValidator.validation_rules



            

Reported by Pylint.

TODO remove 'validator' as rule parameter with the next major release
Error

Line: 47 Column: 3

                  assert 'bar' in CustomValidator.validation_rules


# TODO remove 'validator' as rule parameter with the next major release
@mark.parametrize('rule', ('check_with', 'validator'))
def test_check_with_method(rule):
    # https://github.com/pyeve/cerberus/issues/265
    class MyValidator(cerberus.Validator):
        def _check_with_oddity(self, field, value):

            

Reported by Pylint.

TODO remove test with the next major release
Error

Line: 65 Column: 3

                  )


# TODO remove test with the next major release
@mark.parametrize('rule', ('check_with', 'validator'))
def test_validator_method(rule):
    class MyValidator(cerberus.Validator):
        def _validator_oddity(self, field, value):
            if not value & 1:

            

Reported by Pylint.

pipenv/vendor/cerberus/tests/__init__.py
36 issues
Unable to import 'pytest'
Error

Line: 5 Column: 1

              
import re

import pytest

from cerberus import errors, Validator, SchemaError, DocumentError
from cerberus.tests.conftest import sample_schema



            

Reported by Pylint.

Unable to import 'cerberus'
Error

Line: 7 Column: 1

              
import pytest

from cerberus import errors, Validator, SchemaError, DocumentError
from cerberus.tests.conftest import sample_schema


def assert_exception(exception, document={}, schema=None, validator=None, msg=None):
    """

            

Reported by Pylint.

Unable to import 'cerberus.tests.conftest'
Error

Line: 8 Column: 1

              import pytest

from cerberus import errors, Validator, SchemaError, DocumentError
from cerberus.tests.conftest import sample_schema


def assert_exception(exception, document={}, schema=None, validator=None, msg=None):
    """
    Tests whether a specific exception is raised. Optionally also tests whether the

            

Reported by Pylint.

Dangerous default value {} as argument
Error

Line: 11 Column: 1

              from cerberus.tests.conftest import sample_schema


def assert_exception(exception, document={}, schema=None, validator=None, msg=None):
    """
    Tests whether a specific exception is raised. Optionally also tests whether the
    exception message is as expected.
    """
    if validator is None:

            

Reported by Pylint.

Redefining name 'errors' from outer scope (line 7)
Error

Line: 42 Column: 5

                  validator=None,
    update=False,
    error=None,
    errors=None,
    child_errors=None,
):
    """Tests whether a validation fails."""
    if validator is None:
        validator = Validator(sample_schema)

            

Reported by Pylint.

Access to a protected member _errors of a client class
Error

Line: 52 Column: 21

                  assert isinstance(result, bool)
    assert not result

    actual_errors = validator._errors

    assert not (error is not None and errors is not None)
    assert not (errors is not None and child_errors is not None), (
        'child_errors can only be tested in ' 'conjunction with the error parameter'
    )

            

Reported by Pylint.

The except handler raises immediately
Error

Line: 104 Column: 9

                              assert error.info == info
        except AssertionError:
            pass
        except Exception:
            raise
        else:
            break
    else:
        raise AssertionError(

            

Reported by Pylint.

Using possibly undefined loop variable 'i'
Error

Line: 128 Column: 12

                              errors=_errors,
            )
        )
    return i


def assert_has_errors(_errors, _exp_errors):
    assert isinstance(_exp_errors, list)
    for error in _exp_errors:

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # -*- coding: utf-8 -*-

import re

import pytest

from cerberus import errors, Validator, SchemaError, DocumentError
from cerberus.tests.conftest import sample_schema


            

Reported by Pylint.

Too many arguments (7/5)
Error

Line: 36 Column: 1

                  assert_exception(DocumentError, *args)


def assert_fail(
    document,
    schema=None,
    validator=None,
    update=False,
    error=None,

            

Reported by Pylint.

pipenv/vendor/cerberus/errors.py
36 issues
Unable to import 'cerberus.platform'
Error

Line: 11 Column: 1

              from functools import wraps
from pprint import pformat

from cerberus.platform import PYTHON_VERSION, MutableMapping
from cerberus.utils import compare_paths_lt, quote_string


ErrorDefinition = namedtuple('ErrorDefinition', 'code, rule')
"""

            

Reported by Pylint.

Unable to import 'cerberus.utils'
Error

Line: 12 Column: 1

              from pprint import pformat

from cerberus.platform import PYTHON_VERSION, MutableMapping
from cerberus.utils import compare_paths_lt, quote_string


ErrorDefinition = namedtuple('ErrorDefinition', 'code, rule')
"""
This class is used to define possible errors. Each distinguishable error is

            

Reported by Pylint.

Undefined variable 'unicode'
Error

Line: 447 Column: 34

                  def wrapped(obj, error):
        def _encode(value):
            """Helper encoding unicode strings into binary utf-8"""
            if isinstance(value, unicode):  # noqa: F821
                return value.encode('utf-8')
            return value

        error = copy(error)
        error.document_path = _encode(error.document_path)

            

Reported by Pylint.

TODO remove KEYSCHEMA AND VALUESCHEMA with next major release
Error

Line: 70 Column: 3

              ERROR_GROUP = ErrorDefinition(0x80, None)
MAPPING_SCHEMA = ErrorDefinition(0x81, 'schema')
SEQUENCE_SCHEMA = ErrorDefinition(0x82, 'schema')
# TODO remove KEYSCHEMA AND VALUESCHEMA with next major release
KEYSRULES = KEYSCHEMA = ErrorDefinition(0x83, 'keysrules')
VALUESRULES = VALUESCHEMA = ErrorDefinition(0x84, 'valuesrules')
BAD_ITEMS = ErrorDefinition(0x8F, 'items')

LOGICAL = ErrorDefinition(0x90, None)

            

Reported by Pylint.

Anomalous backslash in string: '\*'. String constant might be missing an r prefix.
Error

Line: 157 Column: 38

                  @property
    def definitions_errors(self):
        """
        Dictionary with errors of an \*of-rule mapped to the index of the definition it
        occurred in. Returns :obj:`None` if not applicable.
        """
        if not self.is_logic_error:
            return None


            

Reported by Pylint.

Anomalous backslash in string: '\*'. String constant might be missing an r prefix.
Error

Line: 185 Column: 71

                  @property
    def is_logic_error(self):
        """
        ``True`` for validation errors against different schemas with \*of-rules.
        """
        return bool(self.code & LOGICAL.code - ERROR_GROUP.code)

    @property
    def is_normalization_error(self):

            

Reported by Pylint.

__init__ method from base class 'ErrorTreeNode' is not called
Error

Line: 288 Column: 5

                  :class:`~cerberus.errors.SchemaErrorTree`.
    """

    def __init__(self, errors=()):
        self.parent_node = None
        self.tree_root = self
        self.path = ()
        self.errors = ErrorList()
        self.descendants = {}

            

Reported by Pylint.

Unnecessary pass statement
Error

Line: 361 Column: 9

              
    def __init__(self, *args, **kwargs):
        """Optionally initialize a new instance."""
        pass

    def __call__(self, errors):
        """
        Returns errors in a handler-specific format.


            

Reported by Pylint.

Unnecessary pass statement
Error

Line: 395 Column: 9

                      :param error: The error to emit.
        :type error: :class:`~cerberus.errors.ValidationError`
        """
        pass

    def end(self, validator):
        """
        Gets called when a validation ends.


            

Reported by Pylint.

Unnecessary pass statement
Error

Line: 404 Column: 9

                      :param validator: The calling validator.
        :type validator: :class:`~cerberus.Validator`
        """
        pass

    def extend(self, errors):
        """
        Adds all errors to the handler's container object.


            

Reported by Pylint.

pipenv/patched/notpip/_vendor/packaging/version.py
36 issues
Attempted relative import beyond top-level package
Error

Line: 10 Column: 1

              import itertools
import re

from ._structures import Infinity, NegativeInfinity
from ._typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:  # pragma: no cover
    from typing import Callable, Iterator, List, Optional, SupportsInt, Tuple, Union


            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 11 Column: 1

              import re

from ._structures import Infinity, NegativeInfinity
from ._typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:  # pragma: no cover
    from typing import Callable, Iterator, List, Optional, SupportsInt, Tuple, Union

    from ._structures import InfinityType, NegativeInfinityType

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 16 Column: 5

              if MYPY_CHECK_RUNNING:  # pragma: no cover
    from typing import Callable, Iterator, List, Optional, SupportsInt, Tuple, Union

    from ._structures import InfinityType, NegativeInfinityType

    InfiniteTypes = Union[InfinityType, NegativeInfinityType]
    PrePostDevType = Union[InfiniteTypes, Tuple[str, int]]
    SubLocalType = Union[InfiniteTypes, int, str]
    LocalType = Union[

            

Reported by Pylint.

Access to a protected member _key of a client class
Error

Line: 103 Column: 34

                      if not isinstance(other, _BaseVersion):
            return NotImplemented

        return method(self._key, other._key)


class LegacyVersion(_BaseVersion):
    def __init__(self, version):
        # type: (str) -> None

            

Reported by Pylint.

Missing module docstring
Error

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

import collections
import itertools
import re


            

Reported by Pylint.

Class '_BaseVersion' inherits from object, can be safely removed from bases in python3
Error

Line: 67 Column: 1

                  """


class _BaseVersion(object):
    _key = None  # type: Union[CmpKey, LegacyCmpKey]

    def __hash__(self):
        # type: () -> int
        return hash(self._key)

            

Reported by Pylint.

Missing class docstring
Error

Line: 106 Column: 1

                      return method(self._key, other._key)


class LegacyVersion(_BaseVersion):
    def __init__(self, version):
        # type: (str) -> None
        self._version = str(version)
        self._key = _legacy_cmpkey(self._version)


            

Reported by Pylint.

Missing function or method docstring
Error

Line: 121 Column: 5

                      return "<LegacyVersion({0})>".format(repr(str(self)))

    @property
    def public(self):
        # type: () -> str
        return self._version

    @property
    def base_version(self):

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 126 Column: 5

                      return self._version

    @property
    def base_version(self):
        # type: () -> str
        return self._version

    @property
    def epoch(self):

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 131 Column: 5

                      return self._version

    @property
    def epoch(self):
        # type: () -> int
        return -1

    @property
    def release(self):

            

Reported by Pylint.

pipenv/vendor/pythonfinder/pythonfinder.py
35 issues
Attempted relative import beyond top-level package
Error

Line: 11 Column: 1

              import six
from click import secho

from . import environment
from .compat import lru_cache
from .exceptions import InvalidPythonVersion
from .utils import Iterable, filter_pythons, version_re

if environment.MYPY_RUNNING:

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 12 Column: 1

              from click import secho

from . import environment
from .compat import lru_cache
from .exceptions import InvalidPythonVersion
from .utils import Iterable, filter_pythons, version_re

if environment.MYPY_RUNNING:
    from typing import Optional, Dict, Any, Union, List, Iterator, Text

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 13 Column: 1

              
from . import environment
from .compat import lru_cache
from .exceptions import InvalidPythonVersion
from .utils import Iterable, filter_pythons, version_re

if environment.MYPY_RUNNING:
    from typing import Optional, Dict, Any, Union, List, Iterator, Text
    from .models.path import Path, PathEntry

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 14 Column: 1

              from . import environment
from .compat import lru_cache
from .exceptions import InvalidPythonVersion
from .utils import Iterable, filter_pythons, version_re

if environment.MYPY_RUNNING:
    from typing import Optional, Dict, Any, Union, List, Iterator, Text
    from .models.path import Path, PathEntry
    from .models.windows import WindowsFinder

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 18 Column: 5

              
if environment.MYPY_RUNNING:
    from typing import Optional, Dict, Any, Union, List, Iterator, Text
    from .models.path import Path, PathEntry
    from .models.windows import WindowsFinder
    from .models.path import SystemPath

    STRING_TYPE = Union[str, Text, bytes]


            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 19 Column: 5

              if environment.MYPY_RUNNING:
    from typing import Optional, Dict, Any, Union, List, Iterator, Text
    from .models.path import Path, PathEntry
    from .models.windows import WindowsFinder
    from .models.path import SystemPath

    STRING_TYPE = Union[str, Text, bytes]



            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 20 Column: 5

                  from typing import Optional, Dict, Any, Union, List, Iterator, Text
    from .models.path import Path, PathEntry
    from .models.windows import WindowsFinder
    from .models.path import SystemPath

    STRING_TYPE = Union[str, Text, bytes]


class Finder(object):

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 127 Column: 13

                  def windows_finder(self):
        # type: () -> Optional[WindowsFinder]
        if os.name == "nt" and not self._windows_finder:
            from .models import WindowsFinder

            self._windows_finder = WindowsFinder()
        return self._windows_finder

    def which(self, exe):

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 147 Column: 9

                      arch=None,  # type: Optional[str]
    ):
        # type: (...) -> Dict[str, Union[int, str, bool, None]]
        from .models import PythonVersion

        major_is_str = major and isinstance(major, six.string_types)
        is_num = (
            major
            and major_is_str

            

Reported by Pylint.

Unused secho imported from click
Error

Line: 9 Column: 1

              import os

import six
from click import secho

from . import environment
from .compat import lru_cache
from .exceptions import InvalidPythonVersion
from .utils import Iterable, filter_pythons, version_re

            

Reported by Pylint.

pipenv/vendor/jinja2/lexer.py
35 issues
Attempted relative import beyond top-level package
Error

Line: 12 Column: 1

              from collections import deque
from sys import intern

from ._identifier import pattern as name_re
from .exceptions import TemplateSyntaxError
from .utils import LRUCache

if t.TYPE_CHECKING:
    import typing_extensions as te

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 13 Column: 1

              from sys import intern

from ._identifier import pattern as name_re
from .exceptions import TemplateSyntaxError
from .utils import LRUCache

if t.TYPE_CHECKING:
    import typing_extensions as te
    from .environment import Environment

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 14 Column: 1

              
from ._identifier import pattern as name_re
from .exceptions import TemplateSyntaxError
from .utils import LRUCache

if t.TYPE_CHECKING:
    import typing_extensions as te
    from .environment import Environment


            

Reported by Pylint.

Unable to import 'typing_extensions'
Error

Line: 17 Column: 5

              from .utils import LRUCache

if t.TYPE_CHECKING:
    import typing_extensions as te
    from .environment import Environment

# cache for the lexers. Exists in order to be able to have multiple
# environments with the same lexer
_lexer_cache: t.MutableMapping[t.Tuple, "Lexer"] = LRUCache(50)  # type: ignore

            

Reported by Pylint.

Attempted relative import beyond top-level package
Error

Line: 18 Column: 5

              
if t.TYPE_CHECKING:
    import typing_extensions as te
    from .environment import Environment

# cache for the lexers. Exists in order to be able to have multiple
# environments with the same lexer
_lexer_cache: t.MutableMapping[t.Tuple, "Lexer"] = LRUCache(50)  # type: ignore


            

Reported by Pylint.

Unused typing_extensions imported as te
Error

Line: 17 Column: 5

              from .utils import LRUCache

if t.TYPE_CHECKING:
    import typing_extensions as te
    from .environment import Environment

# cache for the lexers. Exists in order to be able to have multiple
# environments with the same lexer
_lexer_cache: t.MutableMapping[t.Tuple, "Lexer"] = LRUCache(50)  # type: ignore

            

Reported by Pylint.

Unused Environment imported from environment
Error

Line: 18 Column: 5

              
if t.TYPE_CHECKING:
    import typing_extensions as te
    from .environment import Environment

# cache for the lexers. Exists in order to be able to have multiple
# environments with the same lexer
_lexer_cache: t.MutableMapping[t.Tuple, "Lexer"] = LRUCache(50)  # type: ignore


            

Reported by Pylint.

Redefining built-in 'type'
Error

Line: 194 Column: 9

              def describe_token_expr(expr: str) -> str:
    """Like `describe_token` but for token expressions."""
    if ":" in expr:
        type, value = expr.split(":", 1)

        if type == TOKEN_NAME:
            return value
    else:
        type = expr

            

Reported by Pylint.

Unused argument 'kwargs'
Error

Line: 459 Column: 1

              
    # Even though it looks like a no-op, creating instances fails
    # without this.
    def __new__(cls, *members, **kwargs):  # type: ignore
        return super().__new__(cls, members)


class _Rule(t.NamedTuple):
    pattern: t.Pattern[str]

            

Reported by Pylint.

Consider explicitly re-raising using the 'from' keyword
Error

Line: 658 Column: 21

                                  )
                except Exception as e:
                    msg = str(e).split(":")[-1].strip()
                    raise TemplateSyntaxError(msg, lineno, name, filename)
            elif token == TOKEN_INTEGER:
                value = int(value_str.replace("_", ""), 0)
            elif token == TOKEN_FLOAT:
                # remove all "_" first to support more Python versions
                value = literal_eval(value_str.replace("_", ""))

            

Reported by Pylint.

pipenv/patched/notpip/_internal/utils/filesystem.py
35 issues
Method 'mode' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method '__exit__' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method '__enter__' is abstract in class 'BinaryIO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'isatty' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'flush' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'write' is abstract in class 'BinaryIO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'writelines' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'name' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'tell' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

Method 'seekable' is abstract in class 'IO' but is not overridden
Error

Line: 22 Column: 5

              if MYPY_CHECK_RUNNING:
    from typing import BinaryIO, Iterator

    class NamedTemporaryFileResult(BinaryIO):
        @property
        def file(self):
            # type: () -> BinaryIO
            pass


            

Reported by Pylint.

pipenv/patched/notpip/_internal/configuration.py
35 issues
Unable to import 'pipenv.patched.notpip._vendor.six.moves'
Error

Line: 22 Column: 1

              import os
import sys

from pipenv.patched.notpip._vendor.six.moves import configparser

from pipenv.patched.notpip._internal.exceptions import (
    ConfigurationError,
    ConfigurationFileCouldNotBeLoaded,
)

            

Reported by Pylint.

Class 'Enum' has no 'GLOBAL' member
Error

Line: 96 Column: 9

                      appdirs.user_config_dir("pip"), CONFIG_BASENAME
    )
    return {
        kinds.GLOBAL: global_config_files,
        kinds.SITE: [site_config_file],
        kinds.USER: [legacy_config_file, new_config_file],
    }



            

Reported by Pylint.

Class 'Enum' has no 'SITE' member
Error

Line: 97 Column: 9

                  )
    return {
        kinds.GLOBAL: global_config_files,
        kinds.SITE: [site_config_file],
        kinds.USER: [legacy_config_file, new_config_file],
    }


class Configuration(object):

            

Reported by Pylint.

Class 'Enum' has no 'USER' member
Error

Line: 98 Column: 9

                  return {
        kinds.GLOBAL: global_config_files,
        kinds.SITE: [site_config_file],
        kinds.USER: [legacy_config_file, new_config_file],
    }


class Configuration(object):
    """Handles management of configuration.

            

Reported by Pylint.

Class 'Enum' has no 'USER' member
Error

Line: 120 Column: 29

                      # type: (bool, Kind) -> None
        super(Configuration, self).__init__()

        _valid_load_only = [kinds.USER, kinds.GLOBAL, kinds.SITE, None]
        if load_only not in _valid_load_only:
            raise ConfigurationError(
                "Got invalid value for load_only - should be one of {}".format(
                    ", ".join(map(repr, _valid_load_only[:-1]))
                )

            

Reported by Pylint.

Class 'Enum' has no 'SITE' member
Error

Line: 120 Column: 55

                      # type: (bool, Kind) -> None
        super(Configuration, self).__init__()

        _valid_load_only = [kinds.USER, kinds.GLOBAL, kinds.SITE, None]
        if load_only not in _valid_load_only:
            raise ConfigurationError(
                "Got invalid value for load_only - should be one of {}".format(
                    ", ".join(map(repr, _valid_load_only[:-1]))
                )

            

Reported by Pylint.

Class 'Enum' has no 'GLOBAL' member
Error

Line: 120 Column: 41

                      # type: (bool, Kind) -> None
        super(Configuration, self).__init__()

        _valid_load_only = [kinds.USER, kinds.GLOBAL, kinds.SITE, None]
        if load_only not in _valid_load_only:
            raise ConfigurationError(
                "Got invalid value for load_only - should be one of {}".format(
                    ", ".join(map(repr, _valid_load_only[:-1]))
                )

            

Reported by Pylint.

Class 'Enum' has no 'ENV' member
Error

Line: 132 Column: 51

              
        # The order here determines the override order.
        self._override_order = [
            kinds.GLOBAL, kinds.USER, kinds.SITE, kinds.ENV, kinds.ENV_VAR
        ]

        self._ignore_env_names = ["version", "help"]

        # Because we keep track of where we got the data from

            

Reported by Pylint.

Class 'Enum' has no 'GLOBAL' member
Error

Line: 132 Column: 13

              
        # The order here determines the override order.
        self._override_order = [
            kinds.GLOBAL, kinds.USER, kinds.SITE, kinds.ENV, kinds.ENV_VAR
        ]

        self._ignore_env_names = ["version", "help"]

        # Because we keep track of where we got the data from

            

Reported by Pylint.

Class 'Enum' has no 'USER' member
Error

Line: 132 Column: 27

              
        # The order here determines the override order.
        self._override_order = [
            kinds.GLOBAL, kinds.USER, kinds.SITE, kinds.ENV, kinds.ENV_VAR
        ]

        self._ignore_env_names = ["version", "help"]

        # Because we keep track of where we got the data from

            

Reported by Pylint.

pipenv/vendor/more_itertools/recipes.py
35 issues
Keyword argument before variable positional arguments list in the definition of repeatfunc function
Error

Line: 231 Column: 1

                  return chain.from_iterable(listOfLists)


def repeatfunc(func, times=None, *args):
    """Call *func* with *args* repeatedly, returning an iterable over the
    results.

    If *times* is specified, the iterable will terminate after that many
    repetitions:

            

Reported by Pylint.

Redefining built-in 'next'
Error

Line: 316 Column: 17

                  nexts = cycle(iter(it).__next__ for it in iterables)
    while pending:
        try:
            for next in nexts:
                yield next()
        except StopIteration:
            pending -= 1
            nexts = cycle(islice(nexts, pending))


            

Reported by Pylint.

Redefining name 'repeat' from outer scope (line 12)
Error

Line: 475 Column: 27

                  return next(filter(pred, iterable), default)


def random_product(*args, repeat=1):
    """Draw an item at random from each of the input iterables.

        >>> random_product('abc', range(4), 'XYZ')  # doctest:+SKIP
        ('c', 3, 'Z')


            

Reported by Pylint.

Argument name "n" doesn't conform to snake_case naming style
Error

Line: 60 Column: 1

              ]


def take(n, iterable):
    """Return first *n* items of the iterable as a list.

        >>> take(3, range(10))
        [0, 1, 2]


            

Reported by Pylint.

Argument name "n" doesn't conform to snake_case naming style
Error

Line: 94 Column: 1

                  return map(function, count(start))


def tail(n, iterable):
    """Return an iterator over the last *n* items of *iterable*.

    >>> t = tail(3, 'ABCDEFG')
    >>> list(t)
    ['E', 'F', 'G']

            

Reported by Pylint.

Argument name "n" doesn't conform to snake_case naming style
Error

Line: 105 Column: 1

                  return iter(deque(iterable, maxlen=n))


def consume(iterator, n=None):
    """Advance *iterable* by *n* steps. If *n* is ``None``, consume it
    entirely.

    Efficiently exhausts an iterator without returning values. Defaults to
    consuming the whole iterator, but an optional second argument may be

            

Reported by Pylint.

Argument name "n" doesn't conform to snake_case naming style
Error

Line: 145 Column: 1

                      next(islice(iterator, n, n), None)


def nth(iterable, n, default=None):
    """Returns the nth item or a default value.

    >>> l = range(10)
    >>> nth(l, 3)
    3

            

Reported by Pylint.

Variable name "g" doesn't conform to snake_case naming style
Error

Line: 168 Column: 5

                      False

    """
    g = groupby(iterable)
    return next(g, True) and not next(g, False)


def quantify(iterable, pred=bool):
    """Return the how many times the predicate is true.

            

Reported by Pylint.

Argument name "n" doesn't conform to snake_case naming style
Error

Line: 199 Column: 1

              padnone = pad_none


def ncycles(iterable, n):
    """Returns the sequence elements *n* times

    >>> list(ncycles(["a", "b"], 3))
    ['a', 'b', 'a', 'b', 'a', 'b']


            

Reported by Pylint.

Argument name "listOfLists" doesn't conform to snake_case naming style
Error

Line: 219 Column: 1

                  return sum(map(operator.mul, vec1, vec2))


def flatten(listOfLists):
    """Return an iterator flattening one level of nesting in a list of lists.

        >>> list(flatten([[0, 1], [2, 3]]))
        [0, 1, 2, 3]


            

Reported by Pylint.