From f40683563923199c608ea7e6f62faef17a1b4eaf Mon Sep 17 00:00:00 2001 From: David Peter Date: Thu, 20 Feb 2025 08:25:21 +0100 Subject: [PATCH] =?UTF-8?q?Use=20write!(=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/types/display.rs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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("")