Skip to content

Commit

Permalink
lsp: mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Sep 24, 2024
1 parent 9887868 commit ab052a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/esbonio/esbonio/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def get_text_document(self, doc_uri: str) -> TextDocument:
uri = str(Uri.parse(doc_uri).resolve())
return super().get_text_document(uri)

def put_text_document(self, text_document: types.TextDocumentItem):
def put_text_document(
self, text_document: types.TextDocumentItem, notebook_uri: str | None = None
):
text_document.uri = str(Uri.parse(text_document.uri).resolve())
return super().put_text_document(text_document)

Expand Down
2 changes: 1 addition & 1 deletion lib/esbonio/esbonio/server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def on_document_save(
):
# Record the version number of the document
doc = ls.workspace.get_text_document(params.text_document.uri)
doc.saved_version = doc.version or 0
doc.saved_version = doc.version or 0 # type: ignore[attr-defined]

await call_features(ls, "document_save", params)

Expand Down

0 comments on commit ab052a2

Please sign in to comment.