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>
This commit is contained in:
parent
f5d4361cda
commit
96670e89ec
@ -7,7 +7,6 @@ ignore-patterns=error.py,
|
|||||||
gen.py,
|
gen.py,
|
||||||
parser.py,
|
parser.py,
|
||||||
schema.py,
|
schema.py,
|
||||||
source.py,
|
|
||||||
types.py,
|
types.py,
|
||||||
visit.py,
|
visit.py,
|
||||||
|
|
||||||
|
@ -15,6 +15,9 @@ from typing import List, Optional, TypeVar
|
|||||||
|
|
||||||
|
|
||||||
class QAPISchemaPragma:
|
class QAPISchemaPragma:
|
||||||
|
# Replace with @dataclass in Python 3.7+
|
||||||
|
# pylint: disable=too-few-public-methods
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
# Are documentation comments required?
|
# Are documentation comments required?
|
||||||
self.doc_required = False
|
self.doc_required = False
|
||||||
|
Loading…
Reference in New Issue
Block a user