From: John Snow Date: Fri, 9 Oct 2020 16:15:47 +0000 (-0400) Subject: qapi/source.py: delint with pylint X-Git-Tag: v5.2.0-rc0~61^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96670e89eca099a92492818b45427b567b1fb0de;p=thirdparty%2Fqemu.git 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 Reviewed-by: Eduardo Habkost Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa Message-Id: <20201009161558.107041-26-jsnow@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- diff --git a/scripts/qapi/pylintrc b/scripts/qapi/pylintrc index 507f15537ab..d840b150313 100644 --- a/scripts/qapi/pylintrc +++ b/scripts/qapi/pylintrc @@ -7,7 +7,6 @@ ignore-patterns=error.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 27af5295a85..d7a79a9b8ae 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