Skip to content

Commit

Permalink
Update crates/red_knot_python_semantic/src/types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm authored Jan 9, 2025
1 parent 4b8686b commit efe7de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3607,13 +3607,13 @@ impl<'db> Class<'db> {
explicit_metaclass_of: class_metaclass_was_from,
}
} else {
let self_ty = Type::class_literal(self);
let name = Type::string_literal(self.name(db));
let bases = TupleType::from_elements(db, self.explicit_bases(db));
// TODO: Should be `dict[str, Any]`
let namespace = KnownClass::Dict.to_instance(db);

// TODO: Other keyword arguments?
let arguments = CallArguments::positional([self_ty, bases, namespace]);
let arguments = CallArguments::positional([name, bases, namespace]);

let return_ty_result = match metaclass.call(db, &arguments) {
CallOutcome::NotCallable { not_callable_ty } => Err(MetaclassError {
Expand Down

0 comments on commit efe7de1

Please sign in to comment.