I asked about this and the maintainers of Pylance replied that the Pylance extension for VS Code (part of the Python extension pack) already supports this through its support for Pyright. You can create a pyrightconfig.json file in the root of your workspace folder (if you don’t have one already) and use the reportDeprecated property, which can take a boolean or a string for a problem type/level to report it as: "information", "warning", or "error".
2
Answers
Creating a "pyrightconfig.json" in the root of your project and set
in the file, should work
I asked about this and the maintainers of Pylance replied that the Pylance extension for VS Code (part of the Python extension pack) already supports this through its support for Pyright. You can create a pyrightconfig.json file in the root of your workspace folder (if you don’t have one already) and use the
reportDeprecated
property, which can take a boolean or a string for a problem type/level to report it as:"information"
,"warning"
, or"error"
.