Skip to content

Commit 59fe101

Browse files
committed
.
1 parent fd4d504 commit 59fe101

File tree

1 file changed

+1
-1
lines changed
  • crates/ty_python_semantic/src/types

1 file changed

+1
-1
lines changed

crates/ty_python_semantic/src/types/tuple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ impl<'db> VariableLengthTuple<Type<'db>> {
757757
// (or any other dynamic type), then the `...` is the _gradual choice_ of all
758758
// possible lengths. This means that `tuple[Any, ...]` can match any tuple of any
759759
// length.
760-
if !relation.is_assignability() || !matches!(self.variable, Type::Dynamic(_)) {
760+
if !relation.is_assignability() || !self.variable.is_dynamic() {
761761
return ConstraintSet::from(false);
762762
}
763763

0 commit comments

Comments
 (0)