diff options
-rw-r--r-- | pylint/checkers/typecheck.py | 4 | ||||
-rw-r--r-- | pylint/test/functional/arguments.py | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index 80b51b5..687dd79 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -848,11 +848,11 @@ class IterableChecker(BaseChecker): __implements__ = (IAstroidChecker,) name = 'iterable_check' - msgs = {'E1132': ('Non-iterable value %s is used in an iterating context', + msgs = {'E1133': ('Non-iterable value %s is used in an iterating context', 'not-an-iterable', 'Used when a non-iterable value is used in place where' 'iterable is expected'), - 'E1133': ('Non-mapping value %s is used in a mapping context', + 'E1134': ('Non-mapping value %s is used in a mapping context', 'not-a-mapping', 'Used when a non-mapping value is used in place where' 'mapping is expected'), diff --git a/pylint/test/functional/arguments.py b/pylint/test/functional/arguments.py index 9f0dc63..8ae008d 100644 --- a/pylint/test/functional/arguments.py +++ b/pylint/test/functional/arguments.py @@ -147,6 +147,8 @@ class Issue642(object): # since they have something invalid. from ala_bala_portocola import unknown +# pylint: disable=not-a-mapping,not-an-iterable + function_1_arg(*unknown) function_1_arg(1, *2) function_1_arg(1, 2, 3, **unknown) |