From 6af39bb15b3282c1afd1ccfed6f28b6a0f6c4afc Mon Sep 17 00:00:00 2001 From: rmorshea Date: Thu, 23 Feb 2023 09:50:05 -0800 Subject: [PATCH] rename error + better error descriptions --- pylint/checkers/typecheck.py | 7 ++++--- tests/functional/a/arguments.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index 8a5c051db0..5459c635fa 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -382,9 +382,10 @@ def _missing_member_hint( "a custom __getitem__ method.", ), "E1145": ( - "", - "decorator-preserves-signature", - "Ignore invalid argument errors on calls to this function", + "Decorator does not preserve function signature", + "signature-mutator", + "Emitted when a decorator does not preserve the signature " + "of the functions is takes as inputs.", ), "W1113": ( "Keyword argument before variable positional arguments list " diff --git a/tests/functional/a/arguments.py b/tests/functional/a/arguments.py index bf77dcbc69..e88462a4e4 100644 --- a/tests/functional/a/arguments.py +++ b/tests/functional/a/arguments.py @@ -240,7 +240,7 @@ def wrapper(*args, do_something=True, **kwargs): return wrapper -def yet_another_mutation_decorator(fun): # pylint: disable=decorator-preserves-signature +def yet_another_mutation_decorator(fun): # pylint: disable=signature-mutator """Yet another decorator that changes a function's signature""" def wrapper(*args, do_something=True, **kwargs): if do_something: