Skip to content

Releases: DetachHead/basedpyright

v1.39.0 (pyright 1.1.408)

01 Apr 12:36
d4b4104

Choose a tag to compare

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 error

but 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)

25 Mar 13:54
2455efb

Choose a tag to compare

What's Changed

  • fix typing_extensions auto-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/pure to polyfill newer js features by @DetachHead in #1760

Full Changelog: v1.38.3...v1.38.4

v1.38.3 (pyright 1.1.408)

17 Mar 13:13
bb8a0a3

Choose a tag to compare

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)

26 Feb 13:12
264b247

Choose a tag to compare

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)

18 Feb 11:05
ce372dd

Choose a tag to compare

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_CHECKING guards in match statements by @grahamcracker1234 in #1726

New Contributors

Full Changelog: v1.38.0...v1.38.1

v1.38.0 (pyright 1.1.408)

11 Feb 22:37
db81e4d

Choose a tag to compare

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
    • reportUnnecessaryCast
    • reportUnusedCallResult
    • reportSelfClsDefault
  • 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)

04 Feb 02:58
ecea0a6

Choose a tag to compare

What's Changed

  • fix $schema being 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)

01 Feb 11:12
206627d

Choose a tag to compare

What's Changed

  • fix infinite recursion crash when subject of match statement of type Never is 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)

24 Jan 05:03
80b91e2

Choose a tag to compare

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

v1.37.1 (pyright 1.1.408)

08 Jan 21:31

Choose a tag to compare

What's Changed

Full Changelog: v1.37.0...v1.37.1