mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix type checker errors
This commit is contained in:
parent
b387d4114f
commit
b9068e24ab
7 changed files with 35 additions and 18 deletions
|
@ -18,6 +18,7 @@
|
|||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
|
||||
import typing as T
|
||||
import json, sys, traceback
|
||||
|
||||
from .errors import PrintableError, CompileError, MultipleErrors
|
||||
|
@ -33,7 +34,7 @@ def command(json_method):
|
|||
|
||||
|
||||
class LanguageServer:
|
||||
commands = {}
|
||||
commands: T.Dict[str, T.Callable[[LanguageServer, T.Union[str, int], T.Any], None]] = {}
|
||||
|
||||
def __init__(self):
|
||||
self.client_capabilities = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue