Skip to content

Commit

Permalink
qapi/source.py: delint with pylint
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jnsnow authored and Markus Armbruster committed Oct 10, 2020
1 parent f5d4361 commit 96670e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/qapi/pylintrc
Expand Up @@ -7,7 +7,6 @@ ignore-patterns=error.py,
gen.py,
parser.py,
schema.py,
source.py,
types.py,
visit.py,

Expand Down
3 changes: 3 additions & 0 deletions scripts/qapi/source.py
Expand Up @@ -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
Expand Down

0 comments on commit 96670e8

Please sign in to comment.