chore(deps-dev): bump pyright from 1.1.261 to 1.1.269
Bumps pyright from 1.1.261 to 1.1.269.
Release notes
Sourced from pyright's releases.
Published 1.1.269
Bug Fix: Fixed a bug that resulted in the
reportImportCyclescheck to sometimes fail to detect and report some import cycles.Bug Fix: Fixed bug that resulted in a false positive error when specifying a metaclass that contains an
__init__method with unannotated parameters.Bug Fix: Fixed a bug that led to a false negative when assigning a concrete type to an instance variable with a generic (class-scoped) type.
Enhancement: Enhanced the
type(x) is ytype guard logic to support the case wherexis typed with a TypeVar bound to a class.Bug Fix: Fixed a bug that resulted in a false positive error when determining type compatibility of a generic type with an invariant type parameter and a type argument that is a union which includes an instance of a class and an instance of a subclass.
Bug Fix: Fixed bug that resulted in incorrect type evaluation when solving for a contravariant type variable when a union of callables is passed as an argument.
Published 1.1.268
Behavior Change: Exempted
__new__from parameter covariance check. This is consistent with__init__, which is already exempted from this check.Bug Fix: Fixed a bug that resulted in a false negative when using an unparenthesized assignment expression in an assert statement. Also improved the error messages and parser recovery for incorrect use of a unparenthesized assignment expressions.
Bug Fix: Fixed a bug that resulted in a false positive when analyzing a call to an instance method that omits a
selfparameter and instead uses*args.Enhancement: Improved error reporting for dict literal expressions that are assigned to TypedDict types. Previously, the entire dict literal was included in the error range. Now the range is limited to a specific dictionary entry if there is only one error.
Enhancement: Extended type narrowing support for
x in ypattern whereyis a tuple of known length that includes literal types. In this case, negative ("else") type narrowing can be applied ifxis a union that includes literals.Behavior Change: Increased the code complexity limit that controls whether pyright performs return type inference for functions that have no parameter type annotations. This can be quite expensive, and without parameter types, the results are often low quality. Beyond a certain point, we just skip the expensive analysis and infer a return type of
Unknown. The previous limit was quite low. This increases the limit in an attempt to handle return type inference in more of these cases.Enhancement: Added a missing check for a
**kwargsparameter immediately after a keyword-only separator*parameter. This generates a compiler error in Python.Enhancement: Updated typeshed stubs to the latest version.
Published 1.1.267
Bug Fix: Fixed bug that caused error to be suppressed when calling
assert_neverwith bad arguments (incorrect number, etc).Enhancement: Added support for dictionary expansion of a TypedDict within a dictionary literal expression.
Enhancement: Extended support for union expansion of constrained type variables when performing overload matching.
Bug Fix: Fixed a bug that resulted in different type evaluation behaviors depending on the order of callable types within a union.
Bug Fix: Fixed bug that resulted in a false positive error when the second argument to a
typeconstructor call includes a tuple that includes atypeclass.Bug Fix: Fixed a bug that resulted in incorrect type evaluation when a generic type alias consists solely of a type variable or a type variable wrapped in
Annotated.Bug Fix: Fixed bug in parser that resulted in crash when a soft keyword was used as a class pattern keyword argument name.
Bug Fix: Fixed a bug in the special-case logic that handles
__all__.extend(<submodule>.__all__)so it better handles the case where<module>is imported using an import statement of the formfrom x import submodule.Published 1.1.266
Bug Fix: Fixed a bug that caused a false positive error when using a list comprehension within a method that is overloaded to accept either a
LiteralStringor astr. The incorrect overload was chosen in some cases, picking theLiteralStringvariant rather than thestrvariant even thoughLiteralStringvariant generated type errors.
... (truncated)
Commits
36df440Published 1.1.269f107f0fPublished 1.1.2684cfbc33Published 1.1.267162406bPublished 1.1.26621a6a1bPublished 1.1.265.6fa755cpull-pylance-with-pyright-1.1.264 (#3755)861dfbePublished 1.1.2644b24c9ePublished 1.1.263e82d5f3Published 1.1.262ea2e39bBump terser from 5.10.0 to 5.14.2 in /packages/pyright (#3723)- See full diff in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)