diff options
Diffstat (limited to 'pylint/checkers/variables.py')
-rw-r--r-- | pylint/checkers/variables.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py index 2a1587eeb..c611ae2f0 100644 --- a/pylint/checkers/variables.py +++ b/pylint/checkers/variables.py @@ -1695,6 +1695,9 @@ class VariablesChecker(BaseChecker): return message_name = "unused-variable" + if isinstance(stmt, astroid.FunctionDef) and stmt.decorators: + return + # Don't check function stubs created only for type information if utils.is_overload_stub(node): return |