Skip to content

Commit

Permalink
review nit
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Nov 13, 2024
1 parent 5110b01 commit 9059736
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2502,11 +2502,8 @@ impl<'db> Class<'db> {
.find_keyword("metaclass")?
.value;
let class_definition = semantic_index(db, self.file(db)).definition(class_stmt);
Some(definition_expression_ty(
db,
class_definition,
metaclass_node,
))
let metaclass_ty = definition_expression_ty(db, class_definition, metaclass_node);
Some(metaclass_ty)
}

/// Return the metaclass of this class, or `Unknown` if the metaclass cannot be inferred.
Expand Down

0 comments on commit 9059736

Please sign in to comment.