Skip to content

Commit

Permalink
Use Type::is_never
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored Dec 2, 2024
1 parent b2c5b65 commit 9ccef1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ impl<'db> TupleType<'db> {

for ty in types {
let ty = ty.into();
if ty == Type::Never {
if ty.is_never() {
return Type::Never;
} else {
elements.push(ty);
Expand Down

0 comments on commit 9ccef1a

Please sign in to comment.