Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrabel committed Dec 20, 2023
1 parent 5a82344 commit 45dde2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class PythonLSPServer(MethodDispatcher):
"""Implementation of the Microsoft VSCode Language Server Protocol
https://github.com/Microsoft/language-server-protocol/blob/master/versions/protocol-1-x.md
"""

# pylint: disable=too-many-public-methods,redefined-builtin

def __init__(
Expand Down Expand Up @@ -348,7 +349,6 @@ def m_initialize(
workspace_config.update(self.config._settings)
self.workspaces[uri] = Workspace(uri, self._endpoint, workspace_config)


self._dispatchers = self._hook("pylsp_dispatchers")
self._hook("pylsp_initialize")

Expand Down
5 changes: 4 additions & 1 deletion test/plugins/test_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ def test_autoimport_code_actions_and_completions_for_notebook_document(
send_notebook_did_open(client, ["os", "import os\nos", "os", "sys"])
wait_for_condition(lambda: mock_notify.call_count >= 4)
# We received diagnostics messages for every cell
assert all('textDocument/publishDiagnostics' in c.args for c in mock_notify.call_args_list)
assert all(
"textDocument/publishDiagnostics" in c.args
for c in mock_notify.call_args_list
)

rope_autoimport_settings = server.workspace._config.plugin_settings(
"rope_autoimport"
Expand Down

0 comments on commit 45dde2f

Please sign in to comment.