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: