Enable ignoring warnings on an ad hoc basis
See original GitHub issueWhat’s the output of :CocCommand pyright.version
[coc.nvim] coc-pyright 1.1.135 with Pyright 1.1.135
PyRight emits warnings for e.g. unused names (https://github.com/microsoft/pyright/issues/1118).
Nvim with CoC displays this quite obtrusively. With PyLint, it’s possible to silence warnings on individual lines using comments like # pylint: disable=W0612
.
Is anything similar possible for PyRight?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to disable warnings for particular include files?
When using GCC you can use the -isystem flag instead of the -I flag to disable warnings from that location. So if you're...
Read more >Ad Hoc Conferencing [Cisco Unified Communications ...
Advanced Ad Hoc conferencing allows you to link multiple Ad Hoc conferences together by adding an Ad Hoc conference to another Ad Hoc...
Read more >Patterns: targeting hosts and groups - Ansible Documentation
When you execute Ansible through an ad hoc command or by running a playbook, ... is available [WARNING]: Could not match supplied host...
Read more >Ansible AD HOC Command Examples | Devops Junction
[DEPRECATION WARNING]: The sudo command line option has been deprecated in favor of the "become" command line arguments. This feature will be ...
Read more >Smart View Ad Hoc Behavior - Oracle Help Center
Saving ad hoc grids—The Save Ad Hoc Grid command is enabled and you can save ad hoc ... Smart View display a warning...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jean OK, I understand what you want to do. But unfortunately, there is no way to suppress this hint message individually at the moment.
@yaegassy project level is better already, but this is really the kind of thing that’s relevant on a case by case basis. It looks like https://github.com/fannheyward/coc-pyright/pull/428#issue-609950918 is about a global category of parameters that should not be flagged. In my case, it’s about warnings that would normally be helpful and desired, e.g. in this case about a variable that’s unused but present due to the shape of the data being iterated, that I’d like to silence explicitly after due consideration, so that others who look at the code (including future me) know what we’re up to.