Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes end_lnum and end_col are not present #4062

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

hsanson
Copy link
Contributor

@hsanson hsanson commented Feb 9, 2022

In some python projects using pyright it seems the end_lnum and end_col keys are not present in the nearest_error dictionary. This PR solves the problem by using get() instead of directly accessing the keys.

@hsanson hsanson merged commit 47470ed into dense-analysis:master Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant