Skip to content

Commit cd1a508

Browse files
committed
Fix pylint formatting errors
1 parent 3439561 commit cd1a508

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pylsp/python_lsp.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,13 @@ def m_notebook_document__did_open(self, notebookDocument=None, cellTextDocuments
484484
metadata=notebookDocument.get('metadata')
485485
)
486486
for cell in (cellTextDocuments or []):
487-
workspace.put_cell_document(cell['uri'], notebookDocument['uri'], cell['languageId'], cell['text'], version=cell.get('version'))
487+
workspace.put_cell_document(
488+
cell['uri'],
489+
notebookDocument['uri'],
490+
cell['languageId'],
491+
cell['text'],
492+
version=cell.get('version')
493+
)
488494
self.lint(notebookDocument['uri'], is_saved=True)
489495

490496
def m_notebook_document__did_close(self, notebookDocument=None, cellTextDocuments=None, **_kwargs):
@@ -526,7 +532,7 @@ def m_notebook_document__did_change(self, notebookDocument=None, change=None, **
526532
# Cell documents
527533
for cell_document in structure['didOpen']:
528534
workspace.put_cell_document(
529-
cell_document['uri'],
535+
cell_document['uri'],
530536
notebookDocument['uri'],
531537
cell_document['languageId'],
532538
cell_document['text'],

pylsp/workspace.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ class Cell(Document):
550550
they have a language id.
551551
"""
552552

553-
def __init__(self, uri, notebook_uri, language_id, workspace, source=None, version=None, local=True, extra_sys_path=None,
554-
rope_project_builder=None):
553+
def __init__(self, uri, notebook_uri, language_id, workspace, source=None, version=None, local=True,
554+
extra_sys_path=None, rope_project_builder=None):
555555
super().__init__(uri, workspace, source, version, local, extra_sys_path, rope_project_builder)
556556
self.language_id = language_id
557557
self.notebook_uri = notebook_uri

0 commit comments

Comments
 (0)