Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump pyright from 1.1.361 to 1.1.362 in /.github (#364)
Bumps [pyright](https://github.com/Microsoft/pyright/tree/HEAD/packages/pyright) from 1.1.361 to 1.1.362. <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.362</h2> <p>Bug Fixes:</p> <ul> <li>Fixed a bug that results in incorrect type narrowing when a <code>match</code> statement uses an empty (zero-element) sequence pattern and the subject expression type is a tuple that potentially (but does not always) have a zero length.</li> <li>Fixed a crashing bug that results from an internal assertion failure when a generic class that uses PEP 695 syntax is located within an unreachable code block.</li> <li>Fixed a bug that results in incorrect type narrowing in the negative (fall-through) case when a <code>match</code> statement includes a class pattern with a runtime-checkable protocol class.</li> <li>Fixed recent regression with the <code>TypeIs</code> type guard that resulted in incorrect type narrowing in the negative (else) case.</li> <li>Fixed a bug that results in incorrect type evaluation for a variable that uses a nonlocal or global binding within an inner scope. Such a variable should never honor the narrowed type from the outer scope.</li> <li>Fixed false positive when a TypeVar appears within a function type comment.</li> <li>Fixed incorrect type narrowing for a class pattern argument if the class is a generic whose type parameters have default values.</li> <li>Fixed recent regression that resulted in incorrect type narrowing when a <code>*args: P.args</code> parameter was used in the expression <code>len(args) >= x</code>.</li> <li>Fixed a bug that resulted in a false negative when a <code>Literal</code> with multiple arguments is used in a value expression. It should be treated as a <code>UnionType</code> special form in this case.</li> </ul> <p>Enhancements:</p> <ul> <li>Addressed a performance issue when indexing into a value that has a type consisting of a union of many (dozens or hundreds) of tuple types.</li> <li>Updated typeshed stubs to the latest version.</li> </ul> <p>Behavior Changes:</p> <ul> <li>Changed interpretation of function definitions with (*args: Any, **kwargs: Any) to be <code>...</code> in compliance with latest typing spec.</li> <li>Added special-case handling for <code>__init_subclass__</code> checks for classes that have <code>ABCMeta</code> as a metaclass. Previously, these were exempted from <code>__init_subclass__</code> because <code>ABCMeta</code> has a custom <code>__new__</code> method, but we know that this metaclass calls through to <code>type.__new__</code> which calls <code>__init_subclass__</code>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/pyright/commit/3af2bbc1f8087286343a349cebfd7ef0beea18a7"><code>3af2bbc</code></a> Published 1.1.362</li> <li>See full diff in <a href="https://github.com/Microsoft/pyright/commits/1.1.362/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.361&new-version=1.1.362)](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