comment update

This commit is contained in:
Jack O'Connor 2025-12-11 15:59:14 -08:00
parent d90d33001e
commit b6f2320fcd
1 changed files with 2 additions and 2 deletions

View File

@ -13916,8 +13916,8 @@ impl<'db> UnionType<'db> {
ConstraintSet::from(sorted_self == other.normalized(db)) ConstraintSet::from(sorted_self == other.normalized(db))
} }
/// Returns true if this union is equivalent to `int | float | complex`, which is what /// Identify some specific unions of known classes, currently the ones that `float` and
/// `complex` expands into in type position. /// `complex` expand into in type position.
pub(crate) fn known(self, db: &'db dyn Db) -> Option<KnownUnion> { pub(crate) fn known(self, db: &'db dyn Db) -> Option<KnownUnion> {
let mut has_int = false; let mut has_int = false;
let mut has_float = false; let mut has_float = false;