From 0cfe4f9c6917afbb2498c5f790e27021e41ce87e Mon Sep 17 00:00:00 2001 From: Nyakku Shigure Date: Sat, 18 Feb 2023 01:37:08 +0800 Subject: [PATCH] Remove a whitespace in B004 message (#2991) --- .../src/rules/flake8_bugbear/rules/unreliable_callable_check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff/src/rules/flake8_bugbear/rules/unreliable_callable_check.rs b/crates/ruff/src/rules/flake8_bugbear/rules/unreliable_callable_check.rs index beb6910f1c..4212320ea4 100644 --- a/crates/ruff/src/rules/flake8_bugbear/rules/unreliable_callable_check.rs +++ b/crates/ruff/src/rules/flake8_bugbear/rules/unreliable_callable_check.rs @@ -13,7 +13,7 @@ impl Violation for UnreliableCallableCheck { #[derive_message_formats] fn message(&self) -> String { format!( - " Using `hasattr(x, '__call__')` to test if x is callable is unreliable. Use \ + "Using `hasattr(x, '__call__')` to test if x is callable is unreliable. Use \ `callable(x)` for consistent results." ) }