Skip to content

Conversation

chadsr
Copy link
Contributor

@chadsr chadsr commented Dec 14, 2021

Closes #13

@@ -16,10 +16,18 @@ def pyright_to_rdjson(jsonin: TextIO):
"diagnostics": [],
}

d: Dict
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hadn't seen this kind of forward declaration before - I didn't know you could do that w/o initializing it with a value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! It's a handy, but somewhat un-intuitive feature. :)

@jordemort jordemort merged commit c4fe2f6 into jordemort:main Dec 14, 2021
@jordemort
Copy link
Owner

Thanks for the fix!

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.

pyright_to_rdjson.py - KeyError: 'rule'
2 participants