mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
cleanup: Format using black
This commit is contained in:
parent
4b42016837
commit
af03c2ac0f
36 changed files with 928 additions and 616 deletions
|
@ -35,12 +35,14 @@ class Item(BaseTypedAttribute):
|
|||
item = Group(
|
||||
Item,
|
||||
[
|
||||
Optional([
|
||||
UseIdent("name"),
|
||||
":",
|
||||
]),
|
||||
Optional(
|
||||
[
|
||||
UseIdent("name"),
|
||||
":",
|
||||
]
|
||||
),
|
||||
VALUE_HOOKS,
|
||||
]
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
|
@ -56,7 +58,6 @@ class Items(AstNode):
|
|||
def container_is_combo_box_text(self):
|
||||
validate_parent_type(self, "Gtk", "ComboBoxText", "combo box items")
|
||||
|
||||
|
||||
def emit_xml(self, xml: XmlEmitter):
|
||||
xml.start_tag("items")
|
||||
for child in self.children:
|
||||
|
@ -70,7 +71,4 @@ class Items(AstNode):
|
|||
matches=new_statement_patterns,
|
||||
)
|
||||
def items_completer(ast_node, match_variables):
|
||||
yield Completion(
|
||||
"items", CompletionItemKind.Snippet,
|
||||
snippet="items [$0]"
|
||||
)
|
||||
yield Completion("items", CompletionItemKind.Snippet, snippet="items [$0]")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue