Skip to content

Update dependency pyright to ^1.1.402 #2867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 21, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pyright (source) ^1.1.400 -> ^1.1.402 age adoption passing confidence

Release Notes

Microsoft/pyright (pyright)

v1.1.402

Compare Source

v1.1.401: Published 1.1.401

Compare Source

Bug Fixes:

  • Fixed a bug in the type narrowing logic for the S in D type guard pattern (where S is a string literal and D is a TypedDict). If the TypedDict is not closed, the absence of the key within the TypedDict definition cannot eliminate the type during narrowing.
  • Fixed a bug that leads to a false negative when accessing a key on a TypedDict that is defined with extra_items=Never.
  • Fixed bug that results in incorrect variance inference when a property access method uses a method-local type variable to annotate the self parameter.
  • Fixed bug that results in a false positive error under certain circumstances where the second argument for a super call is a union.
  • Fixed bug that results in a false negative when deriving from a stdlib protocol class and not implementing one or more abstract methods.
  • Fixed bug that results in incorrect type narrowing behavior when the second argument to an isinstance call includes a union (specifically with the | operator) within a tuple expression.
  • Fixed a bug that results in a spurious error when __class__() is assigned to Self.
  • Added missing check for unquoted self references when calling TypeAliasType constructor manually (as opposed to using the PEP 695 type syntax).
  • Fixed a bug that results in incorrect expansion of the bytes promotion type if the value is a bytes literal.
  • Fixed bug in type narrowing logic for class patterns in a match statement. Negative type narrowing was incorrect when the subject is a literal type and the class is the corresponding non-literal class.

Enhancements:

  • Improved handling of __slots__ members to correctly model the case where a descriptor object is stored in a __slots__ variable.
  • Modified --verifytypes output to expand type aliases in its error messages to help diagnose "partially unknown" conditions.
  • Enhanced x is ... type narrowing logic to narrow Any | EllipsisType to EllipsisType to match x is None narrowing logic.
  • Updated typeshed stubs to the latest version.

Behavior Changes:

  • Switched internal usage of builtins.function, typing.AwaitableGenerator, and typing._TypedDict to types.FunctionType, _typeshed._type_checker_internals.AwaitableGenerator, and _typeshed._type_checker_internals.TypedDictFallback, respectively.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@renovate renovate bot added the changelog:skip Don't include this pull request in the release change log label May 21, 2025
@github-actions github-actions bot added the dependencies Pull request that updates a dependency file label May 21, 2025
@renovate renovate bot force-pushed the renovate/pyright-1.x branch from 40a1fd0 to 4377034 Compare June 10, 2025 23:46
@renovate renovate bot changed the title Update dependency pyright to ^1.1.401 Update dependency pyright to ^1.1.402 Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:skip Don't include this pull request in the release change log dependencies Pull request that updates a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants