mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Fix mypy issues
This commit is contained in:
parent
1150ae1a09
commit
cb35acad17
3 changed files with 19 additions and 15 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue