Disable specific warnings
See original GitHub issueHello,
thanks for maintaining this, I’m new to CoC and CoC-PyRight and it is quite pleasant to use.
Would it be possible to add a way to disable a specific warning (by its message for instance)? I’m using double underscore __
to mark a variable as unused (I’m not using single underscore as it is conflicting with the use of it for gettext), this is a common practice, and Coc-Pyright is showing a “not accessed” hint for that.
I know that there have been previous discussion (#107) pointing to diagnostic.showUnused
but I want to keep unused variables hints, only disable it for this specific variable name.
Furthermore, Pyright is incorrectly marking some Twisted methods such as reactor.listenTCP
or reactor.listenSSL
as not existing, it would be useful to indicate that this must be ignored.
Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Try coc-pyright v1.1.171, coc-pyright will ignore
"__" is not accessed
diagnostics.https://github.com/microsoft/pyright/issues/1931
Thanks!