Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Nov 12, 2023
1 parent 4e1d58e commit 729a9d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,7 @@ def m_text_document__completion(self, textDocument=None, position=None, **_kwarg
document = workspace.get_document(textDocument["uri"])
if isinstance(document, Cell):
return self._cell_document__completion(document, position, **_kwargs)
else:
return self.completions(textDocument["uri"], position)
return self.completions(textDocument["uri"], position)

def _cell_document__definition(self, cellDocument, position=None, **_kwargs):
workspace = self._match_uri_to_workspace(cellDocument.notebook_uri)
Expand Down Expand Up @@ -760,8 +759,7 @@ def m_text_document__definition(self, textDocument=None, position=None, **_kwarg
document = workspace.get_document(textDocument["uri"])
if isinstance(document, Cell):
return self._cell_document__definition(document, position, **_kwargs)
else:
return self.definitions(textDocument["uri"], position)
return self.definitions(textDocument["uri"], position)

def m_text_document__document_highlight(
self, textDocument=None, position=None, **_kwargs
Expand Down

0 comments on commit 729a9d9

Please sign in to comment.