build(deps-dev): bump pyright from 1.1.293 to 1.1.325
Bumps pyright from 1.1.293 to 1.1.325.
Release notes
Sourced from pyright's releases.
Published 1.1.325
Bug Fix: Fixed a bug in the
isinstancetype guard logic that produced incorrect results when narrowing a generic class instance.Bug Fix: Fixed a bug in the parser that led to a false positive syntax error when a
matchstatement was followed by a-or~token.Bug Fix: Improved logic that determines whether an object is callable. The
__call__attribute must be a class variable, not an instance variable.Bug Fix: Improved
isinstanceandissubclassnarrowing in the case where an intersection type is created and one of the two subclasses has a custom metaclass.Behavior Change: Changed type evaluation behavior for a class variable that uses
Selfin its type definition. When accessed via a subclass (either throughclsorself), the type is now assumed to be changed toSelfof the child class. This makes pyright's behavior closer to mypy's in this case.Bug Fix: Fixed regression that resulted in incorrect type evaluation and a spurious
reportUnknownArgumentTypeerror when calling the same constructor multiple times in a single call expression.Bug Fix: Fixed a bug that caused a "py.typed" marker file to be ignored in a namespace package if the marker file is at the same directory level as the submodule being imported leading to a spurious
reportMissingTypeStubserror.Bug Fix: Fixed a bug that led to a false positive during overload matching when the arg type includes a union where one of the subtypes is a constrained TypeVar.
Enhancement: Added a new configuration option
deprecateTypingAliasesthat enables deprecation detection and reporting for symbols imported from thetypingmodule that are deprecated according to PEP 585 and 604. The option is currently disabled by default (even in strict mode) but can be enabled manually.Behavior Change: Changed logic to exempt abstract overloaded methods within an ABC so an implementation is not required.
Bug Fix: Fixed check for illegal use of zero-argument
superwithin an inner function located within a method.Bug Fix: Fixed a bug that led to a false negative when a type annotation contains a stringified type on the LHS of an index expression.
Enhancement: Added support for
@type_check_onlydecorator.Enhancement: Improved error message for type incompatibility when type parameter is covariant or contravariant.
Enhancement: Updated typeshed stubs to the latest.
Bug Fix: Fixed a bug that led to incorrect type evaluation and false positive errors when a function with a ParamSpec was passed to another function with a ParamSpec.
Behavior Change: Changed interpretation of
...forms of tuples to improve consistency and match mypy's behavior. The typetuple[int, ...]is now interpreted as the union of all tuples of length zero or more that contain onlyint. Because this is a union, assigning a value of this type to a tuple type with a known (specified) length is now considered a type violation.Bug Fix: Fixed several bugs in the logic for "strict type guard" positive and negative type narrowing.
Bug Fix: Fixed long-standing bug that caused various problems (including poor performance, incorrect type evaluations, and false negatives and false positives) when calling a constructor for a generic class within the class implementation.
Bug Fix: Fixed a bug that led to a false positive
reportUnusedVariableerror when a dynamic expression was used in anamedtuplecall argument.Bug Fix: Fixed a bug that led to a false positive
reportIncompatibleMethodOverrideerror when a function-scoped type variable was used in a contravariant position.Bug Fix: Fixed bug that led to the incorrect type evaluation when calling a generic function and a value of type
P.argsorP.kwargsis assigned to a type variable.Bug Fix: Fixed a bug that led to a false negative error for an expression used within an f-string within a loop.
Published 1.1.324
Bug Fix: Fixed a bug that led to a false positive error under certain circumstances when a callable using
Concatenateis assigned to another callable usingConcatenate.
... (truncated)
Commits
1cb6274Published 1.1.3255af4cd7Published 1.1.3248b83caaPublished 1.1.3237d68470Published 1.1.3224b088a8Published 1.1.3217444078Addressed a performance regression introduced in 1.1.314 due to a switch from...e0c05cfPublished 1.1.320932e542pull-pylance-with-pyright-1.1.319 (#5584)98a6792Published 1.1.3191d558e0Published 1.1.318- Additional commits viewable 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 show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@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)