Releases: DetachHead/basedpyright
v1.28.4 (pyright 1.1.398)
What's Changed
- add suggestion to install stubs package to
reportMissingTypeStubs
for known stubs that aren't in typeshed by @DetachHead in #1158 - disable deprecated check on completions in cases where it causes the type evaluator to randomly specialize instances incorrectly by @DetachHead in #1161
- Update documentation for locale configurations by @NCBM in #1159
- Fix regression in 1.28.2 where setting
diagnosticMode
to"workspace"
doesn't work by @utybo in #1152 - Russian localization update by @decorator-factory in #1163
- fix diagnostics for files that no longer exist being written to the baseline file by @DetachHead in #1166
- remove dependency on python vscode extension and fix pylance check when the python extension isn't installed by @DetachHead in #1167
- Merge 1.1.398 by @DetachHead in #1169
New Contributors
- @utybo made their first contribution in #1152
- @decorator-factory made their first contribution in #1163
Full Changelog: v1.28.3...v1.28.4
v1.28.3 (pyright 1.1.397)
What's Changed
- fix updating the baseline file when running in pull diagnostics mode by @DetachHead in #1154
- fix lsp settings in pycharm and update pycharm installation instructions by @DetachHead in #1148
Full Changelog: v1.28.2...v1.28.3
v1.28.2 (pyright 1.1.397)
What's Changed
- fix
reportAny
/reportUnknown*
false positives on function calls where the type of the default value isAny
or Unknown and the argument isn't used in the call by @DetachHead in #1120 - fix crash in vscode extension when the path to
basedpyright-langserver
executable contains a space by @DetachHead in #1126 - Remove some irrelevant/misleading mentions of pylance from the docs by @DetachHead in #1136
- update pyright to 1.1.397 by @DetachHead in #1145
Full Changelog: v1.28.1...v1.28.2
v1.28.1 (pyright 1.1.396)
What's Changed
- update pyright to 1.1.396 by @DetachHead in #1115
- improve documentation for cli options and mention
failOnWarnings
in the footnote for--warnings
by @DetachHead in #1116 - new home page on the docs site by @DetachHead in #1118
Full Changelog: v1.28.0...v1.28.1
v1.28.0 (pyright 1.1.395)
What's Changed
- add deprecated tag to completions by @DetachHead in #1083, #1086
- fix issues when deleting notebook cells by @DetachHead in #1074
- fix occasional error notification in the language server when reading notebook file contents from disk by @DetachHead in #1076
- include
serverInfo
ininitializeResult
by @disrupted in #1077 - fix logging in the language server printing upstream version number instead of the basedpyright version number by @DetachHead in #1080
- fix: include deprecated/unused diagnostic tags for all severity levels except
none
on relevant rules by @disrupted in #1084, #1089 - automatically import
IPython.display.display
in notebooks by @DetachHead in #1098 - don't add
@override
decorator on method completions if targeting python <3.12 unlessbasedpyright.analysis.useTypingExtensions
is enabled by @DetachHead in #1099 - fix
@override
completion text edit being added to__init_subclass__
and metaclass members by @DetachHead in #1103, #1109 - update pyright to 1.1.395 by @DetachHead in #1108
- fix a bug introduced in 1.1.395 where overloads that use
…
to omit the default value don’t get matched
- fix a bug introduced in 1.1.395 where overloads that use
- Chinese (Simplified) localization update (2025.02) by @NCBM in #1054
New Contributors
- @disrupted made their first contribution in #1077
Full Changelog: v1.27.1...v1.28.0
v1.27.1 (pyright 1.1.394)
What's Changed
jupyter notebook fixes
- fix crash on invalid notebook files by @DetachHead in #1050
- fix language server crash when
diagnosticMode
is"workspace"
and workspace contains jupyter notebooks that haven't yet been opened by @DetachHead in #1065 - fix language server crash on interactive mode cells and notebooks that haven't yet been saved to disk by @DetachHead in #1066
other changes
- revert chokidar file watcher fallback for lsp clients that don't support file watching because it was causing more problems than it solved by @DetachHead in #1053
- update pyright to 1.1.394 by @DetachHead in #1060
- fix a regression in 1.1.394 that caused a false negative for
reportUninitializedInstanceVariable
by @DetachHead in #1060
Full Changelog: v1.27.0...v1.27.1
v1.27.0 (pyright 1.1.393)
What's Changed
jupyter notebook support
just like pylance, basedpyright now works with jupyter notebooks:
but unlike pylance, you can also type check your notebooks with the CLI:
>basedpyright
c:\project\asdf.ipynb - cell 1
c:\project\asdf.ipynb:1:1:12 - error: Type "Literal['']" is not assignable to declared type "int"
"Literal['']" is not assignable to "int" (reportAssignmentType)
c:\project\asdf.ipynb - cell 2
c:\project\asdf.ipynb:2:1:12 - error: Type "int" is not assignable to declared type "str"
"int" is not assignable to "str" (reportAssignmentType)
2 errors, 0 warnings, 0 notes
other changes
- russian localization updates by @decorator-factory in #1031
Full Changelog: v1.26.0...v1.27.0
v1.26.0 (pyright 1.1.393)
What's Changed
- add
@override
decorator when autocompleting overridden methods by @DetachHead in #1027
- update pyright to 1.1.393 by @DetachHead in #1026
- document other improvements to the language server by @DetachHead in #1028
Full Changelog: v1.25.0...v1.26.0
v1.25.0 (pyright 1.1.392)
What's Changed
double click to insert inlay hints
basedpyright now supports double clicking inlay hints to insert them into your code. unlike pylance, this also works on Callable
types:
improved default value for pythonPath
configuring your python interpreter in pyright is needlessly confusing. if you aren't using vscode or you aren't running it from inside a virtual environment, you'll likely encounter errors as a result of pyright using the wrong interpreter. to fix this you'd have to use the venv
and venvPath
settings which are two separate settings for some reason.
in this release, basedpyright now detects the most common location for a virtual environment: a folder named .venv
in the project root, which it uses as the default value for pythonPath
. this means most users shouldn't have to manually configure basedpyright to use the correct python interpreter anymore. see the docs for more info
implemented by @cpprust in #1006
other changes
- fall back to chokidar file watcher if the lsp client doesn't support
capabilities.workspace.didChangeWatchedFiles.dynamicRegistration
by @DetachHead in #1011 - fix inlay hints incorrectly appearing on pseudo-generic classes by @DetachHead in #1021
- docs: correct typos and grammar in comments.md by @jamestrew in #1012
New Contributors
- @cpprust made their first contribution in #1006
- @jamestrew made their first contribution in #1012
Full Changelog: v1.24.0...v1.25.0
v1.24.0 (pyright 1.1.392)
What's Changed
- add
allowedUntypedLibraries
setting to support disabling diagnostics for untyped functions/classes imported from specific modules by @Wizzerinus in #970 - report an error instead of crashing when attempting to baseline errors from files that are located outside of the project root by @DetachHead in #982
- fix import suggestion code actions being disabled when
basedpyright.analysis.autoImportCompletions
is disabled by @DetachHead in #983 - update pyright to 1.1.392 by @DetachHead in #996
- improve example in the docs for configuring the language server in neovim by @korchizhinskiy in #980
New Contributors
- @korchizhinskiy made their first contribution in #980
- @Wizzerinus made their first contribution in #970
Full Changelog: v1.23.2...v1.24.0