sublimelsp / LSP-pyright

Python support for Sublime's LSP plugin provided through microsoft/pyright.
MIT License
126 stars 13 forks source link

chore(deps): bump pyright from 1.1.369 to 1.1.370 in /language-server #339

Closed dependabot[bot] closed 2 months ago

dependabot[bot] commented 2 months ago

Bumps pyright from 1.1.369 to 1.1.370.

Release notes

Sourced from pyright's releases.

Published 1.1.370

Bug Fixes:

  • Fixed bug that resulted in a false negative when assigning to type tuple[Never].
  • Fixed bug that results in incorrect type isinstance or issubclass type narrowing when using a type variable with an upper bound that includes a promotion type.
  • Fixed recent regression that results in an assertion failure (and therefore a crash) when type() is called with dynamic base classes.
  • Fixed bug that results in a false positive when a protocol includes a method implementation that conditionally raises NotImplementedError.
  • Fixed bug that results in false positive reportInconsistentOverload and reportNoOverloadImplementation errors when an overloaded decorator is applied to a non-overloaded function or method.
  • Fixed recent regression that results in false positive when a inner function with an inferred return type is a coroutine (async) and is referenced within the function body in which it's declared.
  • (from Pylance) Fixed recent regression that results in diagnosticSeverityOverrides to be ignored if a pyproject.toml file is present, even if there is no [tools.pyright] section in it.
  • Fixed bug that results in incorrect type evaluation of a function that accepts a Callable[P, T] and is passed a class object whose constructor needs to be converted to a callable.
  • Fixed bug that results in a spurious error when evaluating a quoted (forward reference) type expression that includes an index expression within a TypeAlias definition.
  • Fixed a bug in the type narrowing for the "x is " type guard pattern when <class> is a specific class T, as opposed to a variable of type type[T].
  • Fixed bug that resulted in a false positive error when an abstract class is used for a NewType and the new type is constructed.
  • Fixed bug that results in the incorrect default value of a variadic type variable when the type argument is not provided. It should default to *tuple[Any, ...], not *tuple[Any].
  • Fixed bug that results in a false negative when passing an extra keyword argument to a callable that is parameterized with a ParamSpec.
  • Fixed bug that results in a false positive reportUntypedFunctionDecorator error under certain circumstances.

Enhancements:

  • Updated typeshed stubs to the latest version.
  • Improved analysis performance for complex code flow graphs by adding a cache for reachability.
  • Implemented optimization in the protocol matching cache.
  • Improved handling of special forms, including TypeAliasType instances, when used in value expressions.
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 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)
github-actions[bot] commented 2 months ago

Following are the schema changes in the new version. Make sure that those are reflected in LSP-pyright.sublime-settings and sublime-package.json files.

No updates done to sublime-package.json.