Fix mypy issues

This commit is contained in:
James Westman 2022-01-28 14:07:29 -06:00
parent 1150ae1a09
commit cb35acad17
3 changed files with 19 additions and 15 deletions

View file

@ -18,6 +18,7 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
import typing as T
from .common import *
@ -41,11 +42,11 @@ class ObjectContent(AstNode):
x.emit_xml(xml)
class Object(AstNode):
grammar = Sequence(
grammar: T.Any = [
class_name,
Optional(UseIdent("id")),
ObjectContent,
)
]
@validate("namespace")
def gir_ns_exists(self):