diff mbox series

[v2,5/6] qapi/parser: Silence too-few-public-methods warning

Message ID 20210520225710.168356-6-jsnow@redhat.com (mailing list archive)
State New, archived
Headers show
Series qapi: static typing conversion, pt5b | expand

Commit Message

John Snow May 20, 2021, 10:57 p.m. UTC
Eh. Two properties, a bool method and a public method are non-trivial
enough for me. (Especially in typed python!)

Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/parser.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py
index b1e2fa5c577..618e6e5b0dd 100644
--- a/scripts/qapi/parser.py
+++ b/scripts/qapi/parser.py
@@ -459,6 +459,8 @@  class QAPIDoc:
     class Section:
         def __init__(self, parser: QAPISchemaParser,
                      name: Optional[str] = None, indent: int = 0):
+            # pylint: disable=too-few-public-methods
+
             # parser, for error messages about indentation
             self._parser = parser
             # optional section name (argument/member or section name)