[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 23/38] qapi/source.py: delint with pylint
From: |
John Snow |
Subject: |
[PATCH v2 23/38] qapi/source.py: delint with pylint |
Date: |
Tue, 22 Sep 2020 17:00:46 -0400 |
Shush an error and leave a hint for future cleanups when we're allowed
to use Python 3.7+.
Signed-off-by: John Snow <jsnow@redhat.com>
---
scripts/qapi/pylintrc | 1 -
scripts/qapi/source.py | 3 +++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc
index 6151427a51..7438806096 100644
--- a/scripts/qapi/pylintrc
+++ b/scripts/qapi/pylintrc
@@ -8,7 +8,6 @@ ignore-patterns=doc.py,
gen.py,
parser.py,
schema.py,
- source.py,
types.py,
visit.py,
diff --git a/scripts/qapi/source.py b/scripts/qapi/source.py
index 1cc6a5b82d..ba991d798f 100644
--- a/scripts/qapi/source.py
+++ b/scripts/qapi/source.py
@@ -15,6 +15,9 @@
class QAPISchemaPragma:
+ # Replace with @dataclass in Python 3.7+
+ # pylint: disable=too-few-public-methods
+
def __init__(self) -> None:
# Are documentation comments required?
self.doc_required = False
--
2.26.2
- [PATCH v2 29/38] qapi/gen.py: delint with pylint, (continued)
- [PATCH v2 29/38] qapi/gen.py: delint with pylint, John Snow, 2020/09/22
- [PATCH v2 10/38] qapi/common.py: delint with pylint, John Snow, 2020/09/22
- [PATCH v2 27/38] qapi/gen.py: Remove unused parameter, John Snow, 2020/09/22
- [PATCH v2 23/38] qapi/source.py: delint with pylint,
John Snow <=
- [PATCH v2 11/38] qapi/common.py: Replace one-letter 'c' variable, John Snow, 2020/09/22
- [PATCH v2 03/38] qapi: move generator entrypoint into module, John Snow, 2020/09/22
- [PATCH v2 20/38] qapi/commands.py: add notational type hints, John Snow, 2020/09/22