Skip to content

Commit

Permalink
document_object.version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylmay authored Jun 8, 2024
1 parent 9076a6b commit e582f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def lint(self, doc_uri, is_saved):
workspace = self._match_uri_to_workspace(doc_uri)
document_object = workspace.documents.get(doc_uri, None)
if isinstance(document_object, Document):
self._lint_text_document(doc_uri, workspace, is_saved, doc_version)
self._lint_text_document(doc_uri, workspace, is_saved, document_object.version)
elif isinstance(document_object, Notebook):
self._lint_notebook_document(document_object, workspace)

Expand Down

0 comments on commit e582f81

Please sign in to comment.