how to use reportUnusedVariable within function #5852
-
Is anyone experiencing the same behavior with the following snippet? I'm trying to figure out where to file a bug report for it (on pyright or my editor or the plugins I use)
The above suppresses the hints on my editor (nvim) for The following also does not suppress the hint
while the following does
Am I misunderstanding how to suppress certain pyright errors/warnings/hints? I've read both
and was under the assumption that I'm using lazyvim with the default python extras config which manages pyright using mason
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please refer to this issue. |
Beta Was this translation helpful? Give feedback.
-
Based on the above, the adding the following to a file in .config/nvim/lua/plugins should work for lazyvim
|
Beta Was this translation helpful? Give feedback.
Please refer to this issue.