summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorJohn Snow2020-10-09 18:15:47 +0200
committerMarkus Armbruster2020-10-10 11:37:48 +0200
commit96670e89eca099a92492818b45427b567b1fb0de (patch)
tree4bb63aebc65e9cd230b4b5b2f942570ba8cfa83f /scripts/qapi/source.py
parentqapi/source.py: add type hint annotations (diff)
downloadqemu-96670e89eca099a92492818b45427b567b1fb0de.tar.gz
qemu-96670e89eca099a92492818b45427b567b1fb0de.tar.xz
qemu-96670e89eca099a92492818b45427b567b1fb0de.zip
qapi/source.py: delint with pylint
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> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Cleber Rosa <crosa@redhat.com> Tested-by: Cleber Rosa <crosa@redhat.com> Message-Id: <20201009161558.107041-26-jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
-rw-r--r--scripts/qapi/source.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/qapi/source.py b/scripts/qapi/source.py
index 27af5295a8..d7a79a9b8a 100644
--- a/scripts/qapi/source.py
+++ b/scripts/qapi/source.py
@@ -15,6 +15,9 @@ from typing import List, Optional, TypeVar
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