qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 18/25] qapi/schema.py: Add pylint warning suppressions


From: John Snow
Subject: [PATCH 18/25] qapi/schema.py: Add pylint warning suppressions
Date: Tue, 22 Sep 2020 18:44:54 -0400

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/schema.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/qapi/schema.py b/scripts/qapi/schema.py
index 8907bec0b5..61238c0686 100644
--- a/scripts/qapi/schema.py
+++ b/scripts/qapi/schema.py
@@ -39,6 +39,8 @@
 
 class Visitable:
     """Abstract duck that suggests a class is visitable."""
+    # pylint: disable=too-few-public-methods
+
     def visit(self, visitor: 'QAPISchemaVisitor') -> None:
         raise NotImplementedError
 
@@ -133,6 +135,7 @@ def visit_module(self, name: Optional[str]) -> None:
         pass
 
     def visit_needed(self, entity: QAPISchemaEntity) -> bool:
+        # pylint: disable=unused-argument, no-self-use
         # Default to visiting everything
         return True
 
-- 
2.26.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]