We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4d504 commit 59fe101Copy full SHA for 59fe101
crates/ty_python_semantic/src/types/tuple.rs
@@ -757,7 +757,7 @@ impl<'db> VariableLengthTuple<Type<'db>> {
757
// (or any other dynamic type), then the `...` is the _gradual choice_ of all
758
// possible lengths. This means that `tuple[Any, ...]` can match any tuple of any
759
// length.
760
- if !relation.is_assignability() || !matches!(self.variable, Type::Dynamic(_)) {
+ if !relation.is_assignability() || !self.variable.is_dynamic() {
761
return ConstraintSet::from(false);
762
}
763
0 commit comments