mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix mypy error
This commit is contained in:
parent
a2fb86bc31
commit
64879491a1
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ class XmlOutput(OutputFormat):
|
||||||
self._emit_object_or_template(obj, xml)
|
self._emit_object_or_template(obj, xml)
|
||||||
xml.end_tag()
|
xml.end_tag()
|
||||||
|
|
||||||
def _emit_object_or_template(self, obj: T.Union[Object, Template], xml: XmlEmitter):
|
def _emit_object_or_template(
|
||||||
|
self, obj: T.Union[Object, Template, ListItemFactory], xml: XmlEmitter
|
||||||
|
):
|
||||||
for child in obj.content.children:
|
for child in obj.content.children:
|
||||||
if isinstance(child, Property):
|
if isinstance(child, Property):
|
||||||
self._emit_property(child, xml)
|
self._emit_property(child, xml)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue