diff --git a/crates/ty_python_semantic/src/types/generics.rs b/crates/ty_python_semantic/src/types/generics.rs index a178afe40c..db507df82d 100644 --- a/crates/ty_python_semantic/src/types/generics.rs +++ b/crates/ty_python_semantic/src/types/generics.rs @@ -536,7 +536,11 @@ impl<'db> Specialization<'db> { .iter() .zip(other.types(db)) .map(|(self_type, other_type)| { - union_or_intersection_elements_ordering(db, self_type, other_type) + union_or_intersection_elements_ordering( + db, + &self_type.normalized(db), + &other_type.normalized(db), + ) }) .fold(Ordering::Equal, Ordering::then) })