Skip to content

Update dependency basedpyright to v1.40.2 - #25

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/basedpyright-1.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/basedpyright-1.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
basedpyright 1.31.4 → 1.40.2 age confidence

Release Notes

detachhead/basedpyright (basedpyright)

v1.40.2: (pyright 1.1.414)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.40.1...v1.40.2

v1.40.1: (pyright 1.1.414)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.40.0...v1.40.1

v1.40.0: (pyright 1.1.412)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.39.10...v1.40.0

v1.39.10: (pyright 1.1.412)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.39.9...v1.39.10

v1.39.9: (pyright 1.1.411)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.39.8...v1.39.9

v1.39.8: (pyright 1.1.410)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.39.7...v1.39.8

v1.39.7: (pyright 1.1.410)

Compare Source

What's Changed

  • don't create a copy of the basedpyright-langserver executable in the vscode extension unless running on windows by @​DetachHead in DetachHead#1810
    • this was a hacky way to try to avoid issues updating basedpyright while the language server is running, but this was never actually a problem on linux & macOS because executables can be deleted while running
  • fix empty semantic tokens response interfering with other language servers when basedpyright.disableLanguageServices is set by @​DetachHead in DetachHead#1815
  • avoid duplicated capability registrations by @​DetachHead in DetachHead#1816

Full Changelog: DetachHead/basedpyright@v1.39.6...v1.39.7

v1.39.6: (pyright 1.1.410)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.39.5...v1.39.6

v1.39.5: (pyright 1.1.409)

Compare Source

What's Changed

  • fix error attempting to baseline diagnostics from the new string.templatelib module when targeting python 3.14 by @​DetachHead in DetachHead#1801

Full Changelog: DetachHead/basedpyright@v1.39.4...v1.39.5

v1.39.4: (pyright 1.1.409)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.39.3...v1.39.4

v1.39.3: (pyright 1.1.409)

Compare Source

What's Changed

  • fix docs site not being deployed, which was caused by some changes I made to improve the security of our CI by @​DetachHead in DetachHead#1782

Full Changelog: DetachHead/basedpyright@v1.39.2...v1.39.3

v1.39.2: (pyright 1.1.409)

Compare Source

What's Changed

  • fix basedpyright being broken in the playground caused by browser-basedpyright being published with nothing in it by @​DetachHead in DetachHead#1778

Full Changelog: DetachHead/basedpyright@v1.39.1...v1.39.2

v1.39.1: (pyright 1.1.409)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.39.0...v1.39.1

v1.39.0: (pyright 1.1.408)

Compare Source

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 DetachHead#1748 (some fixes by @​detachhead in DetachHead#1766)

Full Changelog: DetachHead/basedpyright@v1.38.4...v1.39.0

v1.38.4: (pyright 1.1.408)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.38.3...v1.38.4

v1.38.3: (pyright 1.1.408)

Compare Source

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 DetachHead#1753

Full Changelog: DetachHead/basedpyright@v1.38.2...v1.38.3

v1.38.2: (pyright 1.1.408)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.38.1...v1.38.2

v1.38.1: (pyright 1.1.408)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.38.0...v1.38.1

v1.38.0: (pyright 1.1.408)

Compare Source

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 DetachHead#1717
  • fix: don't comment out return types in stub generation by @​veeceey in DetachHead#1724
  • add more quick fixes for specific error types by @​NCBM in DetachHead#1721
    • reportUnnecessaryCast
    • reportUnusedCallResult
    • reportSelfClsDefault
  • fix logged message for pyright executable fallback in vscode extension by @​veeceey in DetachHead#1723

New Contributors

Full Changelog: DetachHead/basedpyright@v1.37.4...v1.38.0

v1.37.4: (pyright 1.1.408)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.37.3...v1.37.4

v1.37.3: (pyright 1.1.408)

Compare Source

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 DetachHead#1711

Full Changelog: DetachHead/basedpyright@v1.37.2...v1.37.3

v1.37.2: (pyright 1.1.408)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.37.1...v1.37.2

v1.37.1: (pyright 1.1.408)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.37.0...v1.37.1

v1.37.0: (pyright 1.1.407)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.36.2...v1.37.0

v1.36.2: (pyright 1.1.407)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.36.1...v1.36.2

v1.36.1: (pyright 1.1.407)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.36.0...v1.36.1

v1.36.0: (pyright 1.1.407)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.35.0...v1.36.0

v1.35.0: (pyright 1.1.407)

Compare Source

What's Changed

improved completions for Literals and enums

in pyright/pylance, you only get completions for Literals that contain strings:

image

but in basedpyright, this now also works with Literals that contain other types, such as int, bool and Enum values:

image

unlike pyright/pylance, basedpyright now also supports completions for enum values:

image

this also works for other types of enums such as IntEnum and StrEnum

implemented by @​KurtBoehm in DetachHead#1644 & DetachHead#1658

Full Changelog: DetachHead/basedpyright@v1.34.0...v1.35.0

v1.34.0: (pyright 1.1.407)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.33.0...v1.34.0

v1.33.0: (pyright 1.1.407)

Compare Source

What's Changed

hover and "go to definition" on operators

pylance supports "go to definition" on some operators. basedpyright now supports this and takes it a step further by also showing hover information as well:

image

implemented by @​KurtBoehm in DetachHead#1576

docs
  • update zed docs to add back the recommendation to use the project's version of basedpyright again (i incorrectly assumed this was no longer necessary) by @​DetachHead in DetachHead#1602
  • Add neovim LSP server setting example using 0.11 format by @​hydecnc in DetachHead#1605
other changes

New Contributors

Full Changelog: DetachHead/basedpyright@v1.32.1...v1.33.0

v1.32.1: (pyright 1.1.407)

Compare Source

What's Changed

Full Changelog: DetachHead/basedpyright@v1.32.0...v1.32.1

v1.32.0: (pyright 1.1.407)

Compare Source

What's Changed

enableBasedFeatures

until now, basedpyright-exclusive type checking features have mostly come in the form of an additional diagnostic rule that users have the option to disable. but this approach limits us from making any interesting breaking changes to the type system itself.

this release introduces a new setting called enableBasedFeatures, which is disabled by default. enabling it will opt you into any changes we make that introduce breaking changes to the type system. in other words, if you're developing a library and expect your users to be using other type checkers, you should probably keep it disabled.

currently only one feature is behind this flag: the new skip_replace argument to the @dataclass_transform decorator, implemented by @​decorator-factory in DetachHead#1568

new diagnostic rule - reportSelfClsDefault

Pyright allows specifying a default value for self in instance methods and cls in class methods:

class Foo:
    def foo(self=1):
        ...

this is almost certainly a mistake, so this new diagnostic rule will warn against it.

also implemented by @​decorator-factory in DetachHead#1581

docs
other changes

Full Changelog: DetachHead/basedpyright@v1.31.7...v1.32.0

v1.31.7: (pyright 1.1.406)

Compare Source

What's Changed

performance fixes
semantic highlighting
docs
other changes

New Contributors

Full Changelog: DetachHead/basedpyright@v1.31.6...v1.31.7

v1.31.6: (pyright 1.1.406)

Compare Source

What's Changed

New Contributors

Full Changelog: DetachHead/basedpyright@v1.31.5...v1.31.6

v1.31.5: (pyright 1.1.405)

Compare Source

What's Changed

semantic highlighting
baseline
docs
other changes

New Contributors

Full Changelog: DetachHead/basedpyright@v1.31.4...v1.31.5


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a87927e4-22bb-4601-b065-283e650db7ee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants