Releases: DetachHead/basedpyright
v1.39.0 (pyright 1.1.408)
What's Changed
new diagnostic rule - reportEmptyAbstractUsage
pyright only reports an error when you instantiate an abstract class that has unimplemented abstract methods. but a class that explicitly extends ABC (or uses ABCMeta) with no abstract methods can also be instantiated, and pyright has no issue with that:
from abc import ABC
class Foo(ABC):
"""abstract class with no abstract methods"""
foo = Foo() # no errorbut the author of the class likely intended this class not to be used directly, and instead subtyped. so if a class extends ABC but defines no abstract methods, instantiating it is likely unintentional.
the reportEmptyAbstractUsage rule flags such instantiations. see the docs for more info.
implemented by @KotlinIsland in #1748 (some fixes by @DetachHead in #1766)
Full Changelog: v1.38.4...v1.39.0
v1.38.4 (pyright 1.1.408)
What's Changed
- fix
typing_extensionsauto-import being treated as first party by @beauxq in #1754 - fix "Received redundant open text document command" error when viewing previous versions of a notebook in vscode's timeline view by @DetachHead in #1758
- format python codeblocks in the docs using ruff by @DetachHead in #1759
- use
@core-js/pureto polyfill newer js features by @DetachHead in #1760
Full Changelog: v1.38.3...v1.38.4
v1.38.3 (pyright 1.1.408)
What's Changed
- fix ordering of code actions and don't show
# pyright:ignore[reportImportCycles]code action because it doesn't work by @NCBM in #1753
Full Changelog: v1.38.2...v1.38.3
v1.38.2 (pyright 1.1.408)
What's Changed
- Improved semantic tokens for keyword arguments by @KurtBoehm in #1740
- Hover messages and jump-to-definition for call expressions by @KurtBoehm in #1741
Full Changelog: v1.38.1...v1.38.2
v1.38.1 (pyright 1.1.408)
What's Changed
- fix language server crash on abstract setter with no parameter by @DetachHead in #1732
- fix docstrings for compiled builtin stubs not being generated for older python versions by @DetachHead in #1733
- Allow
TYPE_CHECKINGguards in match statements by @grahamcracker1234 in #1726
New Contributors
- @grahamcracker1234 made their first contribution in #1726
Full Changelog: v1.38.0...v1.38.1
v1.38.0 (pyright 1.1.408)
What's Changed
- show the default value from the implementation signature when displaying an overload signature (eg. hover and signature help) if its default value is an ellipsis by @DetachHead in #1717
- fix: don't comment out return types in stub generation by @veeceey in #1724
- add more quick fixes for specific error types by @NCBM in #1721
reportUnnecessaryCastreportUnusedCallResultreportSelfClsDefault
- fix logged message for pyright executable fallback in vscode extension by @veeceey in #1723
New Contributors
Full Changelog: v1.37.4...v1.38.0
v1.37.4 (pyright 1.1.408)
What's Changed
- fix
$schemabeing reported as unrecognized setting in config files by @jaenw in #1714 - update badge with logo & new background colour by @DetachHead & @NCBM in #1716
New Contributors
Full Changelog: v1.37.3...v1.37.4
v1.37.3 (pyright 1.1.408)
What's Changed
- fix infinite recursion crash when subject of match statement of type
Neveris used in the left side of a call in the case block by @DetachHead in #1711
Full Changelog: v1.37.2...v1.37.3
v1.37.2 (pyright 1.1.408)
What's Changed
- fix reference to non-existent baseline mode in the docs by @DetachHead in #1699
- No hover messages or jump-to-definition for literals by @KurtBoehm in #1706
Full Changelog: v1.37.1...v1.37.2