-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable specific warnings #627
Comments
Try to create typing files by You can put |
thanks for your feedback, I knew about the What about the double dash issue? It's a common way to mark a variable as ignored, and disabling completely the feature is not a good option. |
I don't find it's a common way, in most Python practices, we use |
Except when it conflicts with the common use of assigning After a quick search I can see several references to it:
|
Try coc-pyright v1.1.171, coc-pyright will ignore |
Thanks! |
Hello,
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
orreactor.listenSSL
as not existing, it would be useful to indicate that this must be ignored.Thanks
The text was updated successfully, but these errors were encountered: