Skip to content

build(deps-dev): bump pyright from 1.1.400 to 1.1.402#503

Merged
github-actions[bot] merged 1 commit intomasterfrom
dependabot/npm_and_yarn/pyright-1.1.402
Jul 1, 2025
Merged

build(deps-dev): bump pyright from 1.1.400 to 1.1.402#503
github-actions[bot] merged 1 commit intomasterfrom
dependabot/npm_and_yarn/pyright-1.1.402

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2025

Bumps pyright from 1.1.400 to 1.1.402.

Release notes

Sourced from pyright's releases.

Published 1.1.402

Changes:

  • f584f78f045b16b63563c71751651a3c477550a1 Published 1.1.402
  • 0246b069f7f9dfa57e78833ad2e882f3cec7b9a3 Fixed bug that results in a false positive "fully overlapping overload" error when a second overload uses a Callable with a ParamSpec but the first does not. This addresses #10587. (#10588)
  • ce1c7359f2126ed0a8c41725ed1bcf63f5616f1e Improved modeling of bound and unbound methods so they properly use types.MethodType or types.FunctionType. This addresses #10514. (#10586)
  • 859cc50ace7eae98d92f740b482cbd3eb355e3e4 Added support for bidirectional type inference when assigning an expression to an unpacked tuple literal and all of the items in the tuple have a declared type. This addresses #10481. (#10585)
  • 4887eb7e3814bb6759eed453479723752d8c73bf Fixed bug that results in confusion between two classes defined in the same file with the same name but in different functions when they are used in protocol matching. This addresses #10418. (#10584)
  • 4cd01c6ccd60f9d2ec733e8c2d641cff2f3508d3 Revert "Added check for mutable values of type list, dict, or set when used as default values for a dataclass field. These result in TypeErrors at runtime. This addresses #10553. (#10557)"
  • f326cc608afeb9f165cd90561f699a46df0522fa Added reportUnreachable diagnostic check. If enabled, it emits a diagnostic for code that is determined to be structurally unreachable or unreachable via type analysis. It does not report code that is within a code block that is gated by a conditional that is statically determined to be false, such as TYPE_CHECKING and version checks. This diagnostic check is off by default even in strict mode because there are legitimate reasons for unreachable code to exist in Python code. (#10581) [ #10284 ]
  • c165c3f26a4b7afb89857f818f924aa036eec945 Reverted narrowing behavior for discriminating between TypedDicts. This narrowing behavior isn't technically correct from a type safety standpoint, but until PEP 728 is accepted, it's the only practical way to do this form of discrimination. This addresses #10517. (#10579)
  • 8610325d96130bd885d350ed64c5464870c7b0e2 Changed behavior when @final is applied to a method but subsequent decorators (like @functools.cache or @property) subsequently transform the method into a different type. The typing spec is not clear how this should work. Pyright now honors the @final in these cases, which is consistent with mypy. This addresses #10543. (#10578)
  • a52db808239277f121c85b08e6134beafa99387a Fixed bug that causes bidirectional type inference to be skipped when the target of an assignment is a member access expression (base.member) and the base expression is a module. This addresses #10539. (#10577)
  • b23d4a242bc13c4c61af7e8f8c7f059c1f408929 Fixed bug that results in a false positive reportUnusedVariable error under specific conditions when an expression's local type has a circular dependency. This addresses #10512. (#10575)
  • 6ecb8f29aa50898a67e7d290afa334931036ec94 Added support for Sentinel type introduced in draft PEP 661. The enableExperimentalFeatures setting must be set to true to enable this feature. This addresses #10565. (#10574)
  • db0da4bc2f8c7f044e4934f6021b5e0f2f79ba48 Added support for Python 3.14 "template string" feature (PEP 750). This addresses #10320. (#10572)
  • 6adcbc835a08261b848ac4811ec3ada9c6952de4 Fixed a bug that results in some additional (unnecessary) memory consumption under certain circumstances involving reachability analysis. This change shouldn't result in any observable behavioral changes other than (theoretically) slightly less memory pressure. (#10569)
  • 7137377eb3dbcd6b87d3dacffead82fe5bcb335a Updated typeshed stubs to the latest version.
  • 64b389c565cf5d2bd4b518a3ffae1690a1fd815c Fixed bug that results in crash when a class is parameterized by a TypeVarTuple that has a non-TypeVarTuple after it in the type parameter list. This addresses #10563. (#10564)
  • 29ce473865ab5ebb51fc96171077fbcc9d277c66 Fixed bug that results in incorrect behavior when a type variable is used to define the extra_items type for a generic TypedDict. This addresses #10545. (#10563)
  • 332c2158ce3190737fb6b4a592197d02e64611e7 Added special-case logic to detect when a class-like symbol created by calling NewType is used as an actual class for assignability or member accesses. This addresses #10550. (#10562)
  • 0f8ded0a2ecf0a040c6e75ffc86399f33a71c4ac Added support for PEP 758, which allows Python 3.14 and newer to support multiple exceptions in an except clause without surrounding parentheses. This addresses #10546. (#10561)
  • 960fb5254d73aa3743def5cfd0f8720eaeb25b4e Fixed bug that results in a false negative when attempting to assign an IntEnum or StrEnum literal to the Literal type corresponding to its value type. This addresses #10552. (#10558)
  • 9148e3dd309cc57e68877b3fefe75db7372d79db Added check for mutable values of type list, dict, or set when used as default values for a dataclass field. These result in TypeErrors at runtime. This addresses #10553. (#10557)
  • bd84a041b4f8f458036085da49038e8736c2a486 Revert "Fixed bug that results in a false positive when accessing a generic attribute from an object whose type is type[X]. This addresses #10304. (#10305)"
  • 3f17258b1d6c269a6d5f4e22bc193649a10ecd64 Fixed bug in language service code that was mutating the contents of a parse node.
  • 743b48240ff3416307d79c8af563ab3c51708bdb Bump tar-fs from 2.1.2 to 2.1.3 in /packages/vscode-pyright (#10533)
  • ced32890864dffebb0980b5bde48b064ebe43397 Removed dependency on unused package "leven". No functional change.
  • d340ecc2aa00fb968ae02d1cfb149c22519a654b Minor code cleanup for consistency and maintainability.
  • 9cccf0ef2b4925ef6c44a3c1b427d61806bec4bc Moved regular expressions used in hot paths to global constants so they don't need to be reconstructed each time. (#10506)
  • cc812eff439ef73b6d056d08a9ba3a936fb1823d Fixed longstanding bug in tokenizer that can result in incorrect behavior under certain circumstances involving characters that require two uint16 unicode character codes (a surrogate followed by a second word). (#10504)
  • d296a1a0e82b1e38d9c6306d63c7c01a330aa338 Updated typeshed stubs to the latest version.
  • 50dda51f8cde28b93903f43c67c45894de699be7 Alternative fix for recent regression related to _type_checker_internals.pyi (#10496)
  • 321b6bf687c6c3ffa3eb627aeb8a143bc4740cde Removed some circular module dependencies. (#10485)
  • b249d11c1e0edb2e6802ccc7a2baa2d409e7453f pull-pylance-with-pyright-1.1.401-20250521-185403 (#10486)

This list of changes was auto generated.

Published 1.1.401

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.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pyright](https://github.com/Microsoft/pyright/tree/HEAD/packages/pyright) from 1.1.400 to 1.1.402.
- [Release notes](https://github.com/Microsoft/pyright/releases)
- [Commits](https://github.com/Microsoft/pyright/commits/1.1.402/packages/pyright)

---
updated-dependencies:
- dependency-name: pyright
  dependency-version: 1.1.402
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 1, 2025
@github-actions github-actions bot merged commit 56fe984 into master Jul 1, 2025
3 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/pyright-1.1.402 branch July 1, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants