How can I extract the deprecated def using pyrightconfig.json with Visual Studio Code's Pylance?

27 views Asked by At

I'm currently trying to detect deprecated defs in Visual Studio Code's Pylance, as shown in the article below.

How can I make VS Code treat usage of deprecated things in Python code as Problems?

I set pyrightconfig.json in the root of the project with the following content, but it doesn't work.

{
    "reportDeprecated": "warning"
}

for exsample, deprecated def in python code is:

logging.warn('exsample')

PythonAnalysis: Type Checking Mode is 'standard', in Visual Studio Code.

What can I do to fix it?

I hope the check can successfully detect deprecated defs.

0

There are 0 answers