diff --git a/crates/ty_python_semantic/src/types/function.rs b/crates/ty_python_semantic/src/types/function.rs index a2a22697c4..297b00427d 100644 --- a/crates/ty_python_semantic/src/types/function.rs +++ b/crates/ty_python_semantic/src/types/function.rs @@ -391,7 +391,7 @@ impl<'db> OverloadLiteral<'db> { if union_type .elements(db) .iter() - .all(|element| element.is_function_literal()) => + .all(Type::is_function_literal) => { // SAFETY: We just checked this union_type.elements(db)[0]