Skip to content
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

Update dependency pyright to ^1.1.387 #2640

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 23, 2024

This PR contains the following updates:

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

Release Notes

Microsoft/pyright (pyright)

v1.1.387: Published 1.1.387

Compare Source

Bug Fixes:

  • Fixed bug that leads to a false negative when passing multiple *args or **kwargs arguments to a callable parameterized by a ParamSpec.
  • Fixed issue that results in a false positive "type could not be determined because it refers to itself" error caused by a false dependency due to narrowing logic. This may also improve type analysis performance in some code.
  • Switched to a different toml parser to avoid incompatibility with the latest toml standard.
  • Changed the evaluated type of an in or not in operator to be bool if the LHS doesn't support containment. Previously, the expression evaluated to Never.
  • Fixed a bug that results in a false positive when a class parameterized by a TypeVarTuple is used in conjunction with a Self type.
  • Fixed bug that results in incorrect type evaluation when performing protocol matching that involves an attribute with a callable type parameterized by a ParamSpec.
  • Added protection for an internal call stack overflow when inferring return types in deep call hierarchies within untyped code.
  • Fixed a false positive "incompatible method override" error in a case that involves both class-scoped and method-scoped type variables.
  • Fix recent regression that broke hover text on .get() of TypedDict instance.
  • Fixed a bug that causes a false positive error when a class uses type(Protocol) as a base class.

Enhancements:

  • Enhanced type narrowing logic for "x == " type guard pattern to handle the case where x is a type variable with a literal upper bound or value constraints that are literals.
  • Improved detection of asymmetric descriptors to handle the case where the __set__ and __get__ methods are overloaded.
  • Added experimental support for draft PEP 764: Inlined typed dictionaries.
  • Changed check in the pyright VS Code extension for the presence of Pylance. If Pylance is installed in the workspace but is not configured to be loaded (i.e. the "python.languageServer" is set to "None"), then pyright will allow itself to be loaded.

v1.1.386: Published 1.1.386

Compare Source

Bug Fixes:

  • Fixed issue that results in non-deterministic false positive error, often relating to the "awaitable" check.
  • Fixed bug that results in a false positive error when using a traditional generic type alias defined with a "naked" type variable surrounded by Annotated within a Python 3.12 type statement.
  • Fixed a bug that leads to a false positive when using asssert_type with a **kwargs parameter that is annotated with an unpacked TypedDict.
  • Fixed recent regression that results in a spurious type error when accessing an instance variable self.x if x has the type of a class-scoped type variable with a default value.
  • Fixed a recent regression that results in false positive errors under certain circumstances that involve assignability checks for two callables that involve a *args: *tuple[] parameter.
  • Fixed bug that results in a false positive when resolving a multi-part import target that involves a circular dependency.
  • Fixed regression that results in a false positive error (and an error that is reported at a bogus location) when overriding a dataclass field with a converter.
  • Fixed bug in constraint solver that resulted in behavior that differed depending on the order of methods in a protocol.
  • Fixed a bug that results in a spurious error when specializing an old-style generic type alias whose type is defined as a new-style type alias that has multiple type parameters, only some of which are used in its type definition.
  • Fixed bug that leads to incorrect type narrowing in the negative ("else") case when using isinstance with a filter type that is typed as type[X].
  • Fixed bug that results in a false negative when the specialization of a ParamSpec results in a signature that has a duplicate parameter name where one parameter has a default value and the other does not.

Enhancements:

  • Added a limit to the number of typed declarations that will be evaluated for a single symbol. This mitigates performance issues with code that redeclares a symbol hundreds or thousands of times.
  • Updated support for "closed" TypedDict to match latest updates to PEP 728.
  • Enhanced the type(y) == x type guard logic to support the case where y is declared as a type variable with an upper bound that overlaps with the type of x.
  • Updated typeshed stubs to the latest version.
  • Updated toml parser library to support toml 1.0.0 syntax.
  • Removed the limitation that the "ignore" setting in a config file must be relative to the project root.

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 Oct 23, 2024
@github-actions github-actions bot added the dependencies Pull request that updates a dependency file label Oct 23, 2024
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.20%. Comparing base (c77bd15) to head (0a0394f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2640   +/-   ##
=======================================
  Coverage   90.20%   90.20%           
=======================================
  Files         256      256           
  Lines       15691    15691           
=======================================
  Hits        14154    14154           
  Misses       1537     1537           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/pyright-1.x branch 7 times, most recently from 25dd9da to a7149fe Compare October 28, 2024 16:58
@renovate renovate bot changed the title Update dependency pyright to ^1.1.386 Update dependency pyright to ^1.1.387 Oct 30, 2024
@ITProKyle ITProKyle merged commit fb33ca3 into master Oct 30, 2024
24 checks passed
@ITProKyle ITProKyle deleted the renovate/pyright-1.x branch October 30, 2024 12:05
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.

1 participant