diff mbox series

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

Message ID 20200922224501.4087749-19-jsnow@redhat.com
State New
Headers show
Series qapi: static typing conversion, pt6 | expand

Commit Message

John Snow Sept. 22, 2020, 10:44 p.m. UTC
Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/schema.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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