Documentation and issues for Pylance
CC-BY-4.0 License
Published by jakebailey over 3 years ago
Notable changes:
For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
__all__
are now always suggested in auto-imports, regardless of their name.from . import X
now work correctly in non-__init__.py
files.match
support has been updated to support unparenthesized pattern subject lists."python.analysis.indexing": true
), auto-import quick fixes will now include results from user code. This was disabled in the previous release; completions from indexed user code are still not offered.scipy
's compiled modules are now included, which should improve performance and completion quality.For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
if
/elif
chains without else
clauses can now completely narrow variables. For example, it's possible to verify that an enum value has been exhaustively checked against all possible values without a "default" case. This feature is only active in annotated functions.if "a" in d
will now recognize d["a"]
as a safe operation."python.analysis.indexing": true
), auto-import completions will no longer include indexer results from user code (as this negatively impacted performance); only auto-imports in code referenced from currently open files will be offered. We are looking for feedback about the indexing feature; please file an issue if you have enabled indexing and this affects your workflow.For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
with
statements will no longer be flagged as invalid..git
will now be ignored in file watcher events. These files are created by some tools and cause reanalysis on change.For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
if some_tuple[1] is not None
will cause future uses of some_tuple[1]
to not be None
, without needing to narrow a temporary variable.For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
"python.analysis.indexing": true
) and many auto-imports are suggested.For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
This is a hotfix release, reverting a change in 2021.2.1 which was intended to fix file watching for non-workspace folders, but instead led to "too many files open" messages on macOS.
(pylance-release#936)
Published by jakebailey over 3 years ago
Notable changes:
.py
files), and a new "go-to-declaration" option brings you to stub files (.pyi
). If either would otherwise return no result, Pylance will bring you to whichever files are available.pip install
. Environments stored in the workspace were not affected by this bug.NoReturn
inference has been fixed, which could potentially lead to code being greyed out as unreachable.json.py
in the workspace root and invalid entries in sys.path
has been fixed. Thanks to David Dworken for reporting this issue.For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
For the full changelog, see CHANGELOG.md.
Published by jakebailey over 3 years ago
Notable changes:
false
to pin down potential performance regressions in the feature. It can still be manually enabled with "python.analysis.indexing": true
.For the full changelog, see CHANGELOG.md.
Published by jakebailey almost 4 years ago
Notable changes:
super()
calls.context.surpress
blocks should no longer be unintentionally grayed out in some cases.@final
and Final
checks will now ignore private class members and no longer ignore members prefixed with a single underscore when checking for redeclarations.For the full changelog, see CHANGELOG.md.
Published by jakebailey almost 4 years ago
Notable changes:
TypedDict
keys are now suggested in index expression completions.property
and method
respectively, for consistency with the LSP spec and other languages in VS Code.For the full changelog, see CHANGELOG.md.
Published by jakebailey almost 4 years ago
Notable changes:
.py
or .pyi
file extension are now supported.TypedDict
, type variable scoping, yields, and ParamSpec
with overloads.reportInvalidTypeVarUse
and reportUnusedCoroutine
.For the full changelog, see CHANGELOG.md.
Published by jakebailey almost 4 years ago
Notable changes:
For the full changelog, see CHANGELOG.md.
Published by jakebailey almost 4 years ago
Notable changes:
contextlib.suppress
) will no longer mark code after the with
block as unreachable.For the full changelog, see CHANGELOG.md.
Published by jakebailey almost 4 years ago
Notable changes:
"pylance.insidersChannel": "daily"
).lx
will match a completion for logical_xor
, even though it does not contain the substring lx
.array
when import numpy as np
is present will now complete to np.array
, rather than adding from numpy import array
.super()
call.editor.wordBasedSuggestion
) are now disabled by default in Python files to mitigate poor completions when Pylance specifies no completions are available.For the full changelog, see CHANGELOG.md.