Skip to content

Commit

Permalink
Bump pyright from 1.1.374 to 1.1.375 in /.github (#424)
Browse files Browse the repository at this point in the history
Bumps
[pyright](https://github.com/Microsoft/pyright/tree/HEAD/packages/pyright)
from 1.1.374 to 1.1.375.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Microsoft/pyright/releases">pyright's
releases</a>.</em></p>
<blockquote>
<h2>Published 1.1.375</h2>
<p>Bug Fixes:</p>
<ul>
<li>Fixed bug that results in a false positive error when a covariant
type variable that is scoped to a method is used in a parameter
annotation.</li>
<li>Fixed bug that leads to internal data structure corruption and
subsequent false positive errors in certain cases involving unions of
<code>Unknown</code> types that include type aliases.</li>
<li>Fixed bug in the <code>functools.partial</code> logic that results
in incorrect handling of an unpacked TypedDict when used with a
<code>**kwargs</code> parameter.</li>
<li>Fixed bug that results in a false positive
<code>reportUnsupportedDunderAll</code> warning when using the
<code>__all__.extend(x.__all__)</code> form and the list of entries in
<code>x</code> is empty.</li>
<li>Fixed bug in TypeVar auto-variance calculations for NamedTuples.
Since NamedTuple variables are read-only, they should not cause a
TypeVar to be invariant.</li>
<li>Added subtyping support or <code>IntEnum</code> and
<code>StrEnum</code> members. These literal values are subtypes of the
corresponding literal <code>int</code> or <code>str</code>.</li>
<li>Fixed bug that results in a false positive error under certain
circumstances when passing an overloaded function as an argument to a
call.</li>
<li>Fixed bug that caused first argument of <code>cast</code> method on
<code>memoryview</code> object to be treated as a type expression.
Pyright was confusing this method with <code>typing.cast</code>.</li>
<li>Fixed a bug that results in incorrect overload matching when one
overload contains a zero-arity variant and another overload contains an
<code>*args</code> (variadic) parameter.</li>
<li>Fixed a bug that results in incorrect type narrowing for
truthy/falsy type guards consisting of an Enum member when the enum
class derives from ReprEnum. In this case, the &quot;magic&quot; of the
enum implementation forwards the <code>__bool__</code> call to the
underlying value.</li>
<li>Fixed a bug that results in incorrect type narrowing when using
<code>isinstance</code> with an instance of a generic class as the first
argument and a concrete subclass as the filter type.</li>
<li>Fixed bug in type narrowing logic for value patterns, specifically
when two enums with members of the same name are involved.</li>
<li>Fixed bug that causes infinite recursion and memory exhaustion under
certain circumstances involving recursive type aliases where the type
alias is used as a type argument.</li>
</ul>
<p>Enhancements:</p>
<ul>
<li>Updated typeshed stubs to the latest version.</li>
<li>Added support for <code>bool</code> expansion to <code>Literal[True]
| Literal[False]</code> during pattern matching when using value
patterns.</li>
</ul>
<p>Behavior Changes:</p>
<ul>
<li>Changed <code>disableLanguageServices</code> feature to apply to
hover text as well as other language services. Previously, hover text
was excluded.</li>
<li>Allow <code>Final</code> and <code>ClassVar</code> to be combined in
both directions within a dataclass. Previously, the <code>Final</code>
qualifier needed to be the outermost.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/pyright/commit/f0c0dc8d4dd8537e10dc46d85c087cddca68ae81"><code>f0c0dc8</code></a>
Published 1.1.375</li>
<li>See full diff in <a
href="https://github.com/Microsoft/pyright/commits/1.1.375/packages/pyright">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyright&package-manager=npm_and_yarn&previous-version=1.1.374&new-version=1.1.375)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>
  • Loading branch information
github-actions[bot] authored Aug 12, 2024
2 parents 62e659c + ebe6fbc commit dd05643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"pyright": "1.1.374"
"pyright": "1.1.375"
}
}

0 comments on commit dd05643

Please sign in to comment.