question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable ignoring warnings on an ad hoc basis

See original GitHub issue

What’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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yaegassycommented, May 6, 2021

@jean OK, I understand what you want to do. But unfortunately, there is no way to suppress this hint message individually at the moment.

0reactions
jeancommented, May 6, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found