diff --git a/crates/ty_python_semantic/src/types.rs b/crates/ty_python_semantic/src/types.rs index d430d11385..5ef0294da4 100644 --- a/crates/ty_python_semantic/src/types.rs +++ b/crates/ty_python_semantic/src/types.rs @@ -2710,10 +2710,10 @@ impl<'db> Type<'db> { }) .unwrap_or_else(|| ConstraintSet::from(relation.is_assignability())), - // Similarly, `Literal[]` is assignable to `C[...]` (a generic-alias type) - // if the default specialization of `C` is assignable to `C[...]`. This scenario - // occurs with final generic types, where `type[C[...]]` is simplified to the - // generic-alias type `C[...]`, due to the fact that `C[...]` has no subclasses. + // Similarly, `` is assignable to `` (a generic-alias type) + // if the default specialization of `C` is assignable to `C[...]`. This scenario occurs + // with final generic types, where `type[C[...]]` is simplified to the generic-alias + // type ``, due to the fact that `C[...]` has no subclasses. (Type::ClassLiteral(class), Type::GenericAlias(target_alias)) => { class.default_specialization(db).has_relation_to_impl( db,