Skip to content

Commit

Permalink
fix pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
sparshg committed Aug 24, 2024
1 parent ffc4964 commit a2063cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def _linting_helper(document: workspace.Document) -> list[lsp.Diagnostic]:
return _parse_boundary_errors(checked_result, document.uri)


def _parse_boundary_errors(checked_result: CheckResult, uri):
def _parse_boundary_errors(checked_result: CheckResult | None, uri):
if checked_result is None:
return []
diagnostics = []
for err in checked_result.errors:
if str(err.file_path) in uri and err.error_info.exception_message:
Expand Down
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pip==24.0
pytest==8.2.2
pyright==1.1.367
pyright==1.1.377
ruff==0.4.1
tach==0.10.0
# LSP
pygls==1.3.1
nox==2024.4.15
debugpy==1.8.1
PyHamcrest==2.1.0
python-jsonrpc-server==0.4.0

0 comments on commit a2063cf

Please sign in to comment.