Skip to content

chore: bump pyright from 1.1.396 to 1.1.398 in /{{cookiecutter.repo_name}}#109

Merged
github-actions[bot] merged 1 commit intomainfrom
dependabot/npm_and_yarn/{{cookiecutter.repo_name}}/pyright-1.1.398
Apr 1, 2025
Merged

chore: bump pyright from 1.1.396 to 1.1.398 in /{{cookiecutter.repo_name}}#109
github-actions[bot] merged 1 commit intomainfrom
dependabot/npm_and_yarn/{{cookiecutter.repo_name}}/pyright-1.1.398

Conversation

@dependabot
Copy link
Contributor

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

Bumps pyright from 1.1.396 to 1.1.398.

Release notes

Sourced from pyright's releases.

Published 1.1.398

Bug Fixes:

  • Fixed bug that results in a spurious type error when a ParamSpec is used in conjunction with a dataclass and a contextmanager.
  • Fixed recent regression that results in a false negative when calling a function with a positional-only parameter whose type is generic and has a concrete default argument value.
  • Fixed regression that results in an Unknown type evaluation where previously Any was generated during bidirectional type inference.
  • Fixed bug that results in incorrect overload resolution when an unpacked argument is of unknown length and potentially matches multiple overloads.
  • Fixed bug that results in a variable being displayed as "not accessed" if it's used in an argument expression for a call expression whose base type is a module or None.
  • Fixed bug that results in a hang under certain very specific circumstances involving a protocol method that has been decorated in such a way that it can no longer be bound to the owning protocol class.
  • Fixed a bug that contributes to inconsistent type evaluation results when using the "--threads" feature.
  • Fixed bug that results in incorrect "literal math" result when dividing Literal[0] by a negative literal int value.
  • Fixed a bug in "literal math" for shift operators. If the RHS value is negative, the operation is invalid, so literal math shouldn't be applied.
  • Fixed bug in "literal math" logic for modulo and floor divide operators that affect cases where operands have different signs.

Behavior Changes:

  • Changed algorithm for applying type narrowing upon assignment when one or both of the declared type or assigned type contain "Any".
  • Removed special-casing for async functions that skips check for implicit return when the return type is NoReturn.

Enhancements:

  • Updated typeshed stubs to the latest version.
  • Extended reportPrivateImportUsage to report the use of symbols imported from private submodules in a "py.typed" or stub library.
  • Extended the reportUnnecessaryComparision check to support the patterns x is None and x is not None in cases where x is provably disjoint in type.
  • Added generalized support for assignment expressions (walrus operators) for type guards.
  • Extended the type narrowing logic for the x == L type guard pattern so it supports the case where x is LiteralString and L is a string literal.

Published 1.1.397

Bug Fixes:

  • [From pylance] Fix problem with partial stub service not being part of Pyright CLI.
  • Added additional special-casing to x in y type guard logic to handle LiteralString values.
  • Partially eliminated inconsistent error reporting when calling a function with a default argument that is not assignable to the declared parameter type. An error will still be reported in the case where the declared parameter type includes an unsolved type variable in most cases, but it will no longer be reported if the unsolved type variable is due to a pseudo-generic class.
  • Fixed bug that results in an identifier being marked "unaccessed" if it is used in an argument expression to a call whose type is possibly unbound.
  • Fixed bug that leads to a false negative when evaluating a call expression where the callable type is Any and an argument expression uses dictionary unpacking but the operands type is not a mapping.
  • Fixed a bug that results in an incorrect "Unknown" type evaluation under certain circumstances involving an assignment to an annotated variable within a loop.
  • Fixed bug that results in incorrect bidirectional type inference when using nested constructor calls for dataclasses.
  • Fixed a bug that results in incorrect "literal math" results when using a floor divide // operator with literal operands whose signs differ.
  • Fixed a bug that results in a hang under certain circumstances when inferring the return type of a recursive function.

Enhancements:

  • Changed type evaluator to make a best effort to evaluate the return type of a function call even if arguments are missing.
  • [From pylance] Implement support for pull diagnostics in pyright.
  • Added code to enforce that an argument in a call expression that is unpacked is iterable.
  • Improved support for unused import detection for import statements that target multi-part names.

Behavior Changes:

  • Changed the type of __path__ from Iterable[str] to MutableSequence[str]. Both are correct, but the latter is more precise.
  • Improved determinism of --threads diagnostic output by always sorting output by file path.
  • Improved reproducibility of CLI diagnostics in non-threaded case by sorting output by file path.
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.396 to 1.1.398.
- [Release notes](https://github.com/Microsoft/pyright/releases)
- [Commits](https://github.com/Microsoft/pyright/commits/1.1.398/packages/pyright)

---
updated-dependencies:
- dependency-name: pyright
  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 Apr 1, 2025
@github-actions github-actions bot merged commit 06790be into main Apr 1, 2025
2 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/{{cookiecutter.repo_name}}/pyright-1.1.398 branch April 1, 2025 15:22
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants