Skip to content

Commit 849a275

Browse files
authored
Fix type of Request and Notification params (#1970)
Request or Notification params are not required to be of any specific type. It's up to the server.
1 parent f518fb1 commit 849a275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/core/protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class Request:
343343
def __init__(
344344
self,
345345
method: str,
346-
params: Optional[Mapping[str, Any]] = None,
346+
params: Any = None,
347347
view: Optional[sublime.View] = None,
348348
progress: bool = False
349349
) -> None:
@@ -479,7 +479,7 @@ class Notification:
479479

480480
__slots__ = ('method', 'params')
481481

482-
def __init__(self, method: str, params: Optional[Mapping[str, Any]] = None) -> None:
482+
def __init__(self, method: str, params: Any = None) -> None:
483483
self.method = method
484484
self.params = params
485485

0 commit comments

Comments
 (0)