[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/6] qapi/parser: Silence too-few-public-methods warning
From: |
John Snow |
Subject: |
[PATCH v2 5/6] qapi/parser: Silence too-few-public-methods warning |
Date: |
Thu, 20 May 2021 18:57:09 -0400 |
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 --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)
--
2.30.2
- [PATCH v2 0/6] qapi: static typing conversion, pt5b, John Snow, 2021/05/20
- [PATCH v2 3/6] qapi/parser: add type hint annotations (QAPIDoc), John Snow, 2021/05/20
- [PATCH v2 6/6] qapi/parser: enable pylint checks, John Snow, 2021/05/20
- [PATCH v2 2/6] qapi/parser: Allow empty QAPIDoc Sections, John Snow, 2021/05/20
- [PATCH v2 4/6] qapi/parser: enable mypy checks, John Snow, 2021/05/20
- [PATCH v2 1/6] qapi/parser: fix unused check_args_section arguments, John Snow, 2021/05/20
- [PATCH v2 5/6] qapi/parser: Silence too-few-public-methods warning,
John Snow <=