Skip to content

Bump pyright from 1.1.180 to 1.1.184#450

Merged
frenck merged 1 commit intomainfrom
dependabot/npm_and_yarn/pyright-1.1.184
Nov 1, 2021
Merged

Bump pyright from 1.1.180 to 1.1.184#450
frenck merged 1 commit intomainfrom
dependabot/npm_and_yarn/pyright-1.1.184

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Nov 1, 2021

Bumps pyright from 1.1.180 to 1.1.184.

Release notes

Sourced from pyright's releases.

Published 1.1.184

Bug Fix: Fixed false positive error when a class used within as a TypeVar bound argument is a "pseudo generic" class, one whose constructor is unannotated.

Bug Fix: Changed type evaluator to elide NoReturn from union generated from or or and operator.

Enhancement: Improved error handling for the Generic special form. Eliminated false positive error when Generic is used in certain legitimate ways within a function.

Enhancement: Improved error messages for call expressions that involve overloaded functions.

Enhancement: Implemented optimization that reduces analysis time and memory usage by generating a diagnostic message (which often involve converting types to a textual representation) only if the caller is interested in the diagnostic message.

Enhancement: Added support for "Self" type documented in draft PEP: https://docs.google.com/document/d/1ujuSMXDmSIOJpiZyV7mvBEC8P-y55AgSzXcvhrZciuI/edit.

Enhancement: Added support for trace logging of type evaluation from the command line when both --stats and --verbose are specified.

Bug Fix: Fixed bug that resulted in the incorrect type evaluation when a property was defined on a metaclass and accessed through a class with that metaclass.

Published 1.1.183

Bug Fix: Fixed bug in handling of the recently-added "--skipunannotated" command-line flag.

Bug Fix: Fixed a recent regression that resulted in a false positive error when Union was used with no type arguments outside of a type annotation.

Enhancement: Extended support for bidirectional type inference for functions that have a generic return type and the "expected type" is a generic class with type arguments that include literal types.

Enhancement: Expanded support for bidirectional type checking for function call expressions where the return type of the function includes a TypeVar that also appears within a function parameter and that parameter is a callable.

Bug Fix: Fixed bug that resulted in incorrect type evaluation for a generic function that returns a specialized class that uses a Concatenate in one of the type arguments.

Bug Fix: Fixed bug that caused the type of super().__new__(cls) to be evaluated incorrectly.

Bug Fix: Changed type evaluator to elide NoReturn from union generated from ternary operator.

Bug Fix: Fixed a bug that allowed a function to be assigned to a (non-protocol) class if that class defined a __call__ method. This should be allowed only for protocol classes.

Bug Fix: Fixed a bug that allowed a function to be assigned to a protocol class if it defined a __call__ method but also defined additional methods or attributes.

Behavior Change: Changed text representation of inferred type of self and cls parameters to Self@ClassName. This is more consistent with the emerging standard for an explicit Self type.

Published 1.1.182

Enhancement: Implemented missing check for a write to a Final instance or class variable outside of the class implementation.

Enhancement: Added missing check for an attempt to write to a named tuple attribute, which generates a runtime exception.

Bug Fix: Fixed bug that resulted in a false positive when a function returned a callable type that included a parameter with a union type that included an unsolved type variable.

Bug Fix: Improved handling of intersection types produced as part of isinstance or issubclass type narrowing when the source variable is a type variable. The creation of the intersection type was incorrectly eliminating the association with the type variable, so the narrowed type was no longer seen as compatible with the TypeVar.

Enhancement: Added check for Union when only one type argument is provided and it is not an unpacked variadic type variable.

Bug Fix: Fixed bug in "--ignoreexternal" option used with package type verification. It was not correctly ignoring all externally-imported symbols that had unknown or partially-unknown types.

... (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 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.180 to 1.1.184.
- [Release notes](https://github.com/Microsoft/pyright/releases)
- [Commits](https://github.com/Microsoft/pyright/commits/1.1.184/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 Upgrade or downgrade of project dependencies. javascript labels Nov 1, 2021
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 1, 2021

Codecov Report

Merging #450 (a48d421) into main (eee23b1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #450   +/-   ##
=======================================
  Coverage   64.15%   64.15%           
=======================================
  Files           4        4           
  Lines         452      452           
  Branches       96       96           
=======================================
  Hits          290      290           
  Misses        146      146           
  Partials       16       16           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eee23b1...a48d421. Read the comment docs.

@frenck frenck merged commit 9780771 into main Nov 1, 2021
@frenck frenck deleted the dependabot/npm_and_yarn/pyright-1.1.184 branch November 1, 2021 07:25
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Upgrade or downgrade of project dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant