Skip to content

Commit

Permalink
rename error + better error descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Feb 23, 2023
1 parent 7f4b21f commit 6af39bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/a/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6af39bb

Please sign in to comment.