diff --git a/crates/red_knot_python_semantic/src/types/display.rs b/crates/red_knot_python_semantic/src/types/display.rs index e83975a3c5..95dd427aa6 100644 --- a/crates/red_knot_python_semantic/src/types/display.rs +++ b/crates/red_knot_python_semantic/src/types/display.rs @@ -89,19 +89,19 @@ impl Display for DisplayRepresentation<'_> { Type::KnownInstance(known_instance) => f.write_str(known_instance.repr(self.db)), Type::FunctionLiteral(function) => f.write_str(function.name(self.db)), Type::Callable(CallableType::BoundMethod(bound_method)) => { - f.write_str("") + write!( + f, + "", + method = bound_method.function(self.db).name(self.db), + instance = bound_method.self_instance(self.db).display(self.db) + ) } Type::Callable(CallableType::MethodWrapperDunderGet(function)) => { - f.write_str("") + write!( + f, + "", + function = function.name(self.db) + ) } Type::Callable(CallableType::WrapperDescriptorDunderGet) => { f.write_str("")