Pylance is an extension for Visual Studio Code that provides a language server for Python. When applying this tag to your question, consider also tagging it with [visual-studio-code] and/or [python].
Pylance is a language server to support the core Python extension for Visual Studio Code. Its aim is to help developers write Python code better and faster by providing auto-imports, semantic highlighting, built-in reporting of warnings and errors, strict type-checking, and method signatures with type information when displaying the popup Intellisense documentation.
It was first introduced in a post on Microsoft's Python development blog: Announcing Pylance: Fast, feature-rich language support for Python in Visual Studio Code:
To deliver an improved user experience, we’ve created Pylance as a brand-new language server based on Microsoft’s Pyright static type checking tool. Pylance leverages type stubs (.pyi files) and lazy type inferencing to provide a highly-performant development experience. Pylance supercharges your Python IntelliSense experience with rich type information, helping you write better code, faster. The Pylance extension is also shipped with a collection of type stubs for popular modules to provide fast and accurate auto-completions and type checking.
It was made available starting VS Code 1.49 (2020.8.0 (12 August 2020) release).
Installation is straightforward:
- Install the Pylance extension
- Configure your settings.json file
"python.languageServer": "Pylance",
- Open a .py file and the extension should activate
For more information: