Skip to content

Commit 80ac427

Browse files
committed
format
1 parent 938aeb3 commit 80ac427

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

pylsp/plugins/hover.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@hookimpl
1212
def pylsp_hover(config, document, position):
13-
signature_config = config.settings().get("signature", {})
1413
code_position = _utils.position_to_jedi_linecolumn(document, position)
1514
definitions = document.jedi_script(use_document_path=True).infer(**code_position)
1615
word = document.word_at_position(position)
@@ -49,7 +48,7 @@ def pylsp_hover(config, document, position):
4948
'language': 'python',
5049
'value': signature,
5150
})
52-
51+
5352
if doc:
5453
contents.append(doc)
5554

pylsp/python_lsp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import threading
88
import uuid
99
from functools import partial
10-
from typing import Any
1110
from hashlib import sha256
11+
from typing import Any
1212

1313
try:
1414
import ujson as json
@@ -432,7 +432,7 @@ def completions(self, doc_uri, position):
432432
"pylsp_completions", doc_uri, position=position, ignored_names=ignored_names
433433
)
434434
return {"isIncomplete": True, "items": flatten(completions)}
435-
435+
436436
def completion_detail(self, item):
437437
detail = self._hook('pylsp_completion_detail', item=item)
438438
return detail

pylsp/workspace.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright 2021- Python Language Server Contributors.
33

44
import functools
5+
import importlib.metadata
56
import io
67
import logging
78
import os
@@ -11,7 +12,6 @@
1112
from contextlib import contextmanager
1213
from threading import RLock
1314
from typing import Callable, Optional
14-
import importlib.metadata
1515

1616
import jedi
1717

@@ -394,15 +394,15 @@ def close(self) -> None:
394394

395395

396396
class Document:
397-
DO_NOT_PRELOAD_MODULES = ['attrs', 'backcall', 'bleach', 'certifi', 'chardet', 'cycler', 'decorator', 'defusedxml',
398-
'docopt', 'entrypoints', 'idna', 'importlib-metadata', 'ipykernel', 'ipython-genutils',
399-
'ipython', 'ipywidgets', 'jedi', 'jinja2', 'joblib', 'jsonschema', 'jupyter-client',
400-
'jupyter-core', 'markupsafe', 'mistune', 'nbconvert', 'nbformat', 'notebook', 'packaging',
401-
'pandocfilters', 'parso', 'pexpect', 'pickleshare', 'pip', 'pipreqs', 'pluggy',
402-
'prometheus-client', 'prompt-toolkit', 'ptyprocess', 'pygments', 'pyparsing',
403-
'pyrsistent', 'python-dateutil', 'python-jsonrpc-server', 'python-language-server',
404-
'pytz', 'pyzmq', 'send2trash', 'setuptools', 'six', 'terminado', 'testpath',
405-
'threadpoolctl', 'tornado', 'traitlets', 'ujson', 'wcwidth', 'webencodings', 'wheel',
397+
DO_NOT_PRELOAD_MODULES = ['attrs', 'backcall', 'bleach', 'certifi', 'chardet', 'cycler', 'decorator', 'defusedxml',
398+
'docopt', 'entrypoints', 'idna', 'importlib-metadata', 'ipykernel', 'ipython-genutils',
399+
'ipython', 'ipywidgets', 'jedi', 'jinja2', 'joblib', 'jsonschema', 'jupyter-client',
400+
'jupyter-core', 'markupsafe', 'mistune', 'nbconvert', 'nbformat', 'notebook', 'packaging',
401+
'pandocfilters', 'parso', 'pexpect', 'pickleshare', 'pip', 'pipreqs', 'pluggy',
402+
'prometheus-client', 'prompt-toolkit', 'ptyprocess', 'pygments', 'pyparsing',
403+
'pyrsistent', 'python-dateutil', 'python-jsonrpc-server', 'python-language-server',
404+
'pytz', 'pyzmq', 'send2trash', 'setuptools', 'six', 'terminado', 'testpath',
405+
'threadpoolctl', 'tornado', 'traitlets', 'ujson', 'wcwidth', 'webencodings', 'wheel',
406406
'widgetsnbextension', 'yarg', 'zipp']
407407

408408

0 commit comments

Comments
 (0)