mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
.
This commit is contained in:
parent
fd4d50424b
commit
59fe101cb8
1 changed files with 1 additions and 1 deletions
|
@ -757,7 +757,7 @@ impl<'db> VariableLengthTuple<Type<'db>> {
|
|||
// (or any other dynamic type), then the `...` is the _gradual choice_ of all
|
||||
// possible lengths. This means that `tuple[Any, ...]` can match any tuple of any
|
||||
// length.
|
||||
if !relation.is_assignability() || !matches!(self.variable, Type::Dynamic(_)) {
|
||||
if !relation.is_assignability() || !self.variable.is_dynamic() {
|
||||
return ConstraintSet::from(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue