From eb670fb6f680b98aaf7938b7c009c72d310b54bd Mon Sep 17 00:00:00 2001 From: Mehdi Drissi Date: Tue, 9 May 2023 11:37:14 -0700 Subject: [PATCH] Fix False Positive useless suppression --- pylint_protobuf/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pylint_protobuf/__init__.py b/pylint_protobuf/__init__.py index e9990d6..b149941 100644 --- a/pylint_protobuf/__init__.py +++ b/pylint_protobuf/__init__.py @@ -505,6 +505,7 @@ def _check_extension_getitem(self, node): def _disable(self, msgid, line, scope='module'): try: + self.linter.disable("useless-suppression", scope=scope, line=line) self.linter.disable(msgid, scope=scope, line=line) except AttributeError: pass # might be UnittestLinter