Replies: 2 comments
-
Sorry but Pylance isn't a linter. We're actually just a wrapper around Pyright. You might try pylint or ruff for linter based features. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Makes sense, thank you. Sorry for my ignorance on the functions of pyright and pylance. I added a workaround here which works well for me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While developing, I often tend to make changes that I want to remember to undo before submitting.
Is there any way I can have Pylance flag those lines for me?
A clean way would have been if Pylance flagged something like
# DO NOT SUBMIT
(or any other comment). However, I am happy with any hacks too. Ideally it should be possible to do inside a function or a struct like a dict or list literal.Note that I want it to actually flag the code in red, much like an error. A
# TODO
would not satisfy this criteria, since# TODO
's can be followed up in the future.Beta Was this translation helpful? Give feedback.
All reactions