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
|
@ -31,13 +31,16 @@ class TextDocumentSyncKind(enum.IntEnum):
|
|||
Full = 1
|
||||
Incremental = 2
|
||||
|
||||
|
||||
class CompletionItemTag(enum.IntEnum):
|
||||
Deprecated = 1
|
||||
|
||||
|
||||
class InsertTextFormat(enum.IntEnum):
|
||||
PlainText = 1
|
||||
Snippet = 2
|
||||
|
||||
|
||||
class CompletionItemKind(enum.IntEnum):
|
||||
Text = 1
|
||||
Method = 2
|
||||
|
@ -91,12 +94,14 @@ class Completion:
|
|||
"documentation": {
|
||||
"kind": "markdown",
|
||||
"value": self.docs,
|
||||
} if self.docs else None,
|
||||
}
|
||||
if self.docs
|
||||
else None,
|
||||
"deprecated": self.deprecated,
|
||||
"insertText": insert_text,
|
||||
"insertTextFormat": insert_text_format,
|
||||
}
|
||||
return { k: v for k, v in result.items() if v is not None }
|
||||
return {k: v for k, v in result.items() if v is not None}
|
||||
|
||||
|
||||
class SemanticTokenType(enum.IntEnum):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue