You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code makes Visual Studio complain that the variable function arguments __ is unused. I think it should work like _. Because _ don't create noise in the scrollbar. When I
from my_module import default_kafka_function
def wrapper_kafka_function(*_, **__):
default_kafka_function()
Alternatively I would be happy if this did not create noise in the scrollbar.
from my_module import default_kafka_function
def wrapper_kafka_function(*args, **kwargs):
default_kafka_function()
Original Comments
Feedback Bot on 5/6/2024, 08:42 PM:
(private comment, text removed)
The text was updated successfully, but these errors were encountered:
Thank you for reaching out about the diagnostic hints you are seeing in PTVS.
The behavior you described, where xxx is not accessed hints appear on hover, is by design. This also applies to kwargs. PTVS utilizes Pylance as its language server to provide these diagnostic features.
Using an underscore (_) as a parameter name is a common and accepted practice to indicate that a value will not be used. Therefore, Pylance recognizes _ as a deliberate choice and does not report it as unused.
The diagnostic hints displayed on hover by Pylance are intentional, and there is no way to disable this through PTVS. If you would like to suggest a change or look for a way to turn off these hints, we recommend proposing this feature on the Pylance GitHub repository at https://github.com/microsoft/pylance-release
This issue has been moved from a ticket on Developer Community.
This code makes Visual Studio complain that the variable function arguments
__
is unused. I think it should work like_
. Because_
don't create noise in the scrollbar. When IAlternatively I would be happy if this did not create noise in the scrollbar.
Original Comments
Feedback Bot on 5/6/2024, 08:42 PM:
(private comment, text removed)
The text was updated successfully, but these errors were encountered: