mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Format using black
This commit is contained in:
parent
6a36d92380
commit
8fee46ec68
40 changed files with 975 additions and 610 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):
|
||||
|
@ -110,7 +115,6 @@ class DiagnosticSeverity(enum.IntEnum):
|
|||
Hint = 4
|
||||
|
||||
|
||||
|
||||
@dataclass
|
||||
class SemanticToken:
|
||||
start: int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue