diff --git a/crates/ty_python_semantic/src/types/constraints.rs b/crates/ty_python_semantic/src/types/constraints.rs index 55f435a705..2bdfbadeea 100644 --- a/crates/ty_python_semantic/src/types/constraints.rs +++ b/crates/ty_python_semantic/src/types/constraints.rs @@ -207,7 +207,7 @@ impl<'db> ConstraintSet<'db> { upper.top_materialization(db), ), }; - let node = RangeConstraint::new_node(db, lower, typevar, upper); + let node = ConstrainedTypeVar::new_node(db, lower, typevar, upper); Self { node } }