mirror of https://github.com/astral-sh/ruff
clippity bippity
This commit is contained in:
parent
7bbf839325
commit
30452586ad
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue