From 0d54ee6d14367e444664fa38b8522776aaaee5df Mon Sep 17 00:00:00 2001 From: Ganden Schaffner Date: Mon, 2 May 2022 06:57:53 -0700 Subject: [PATCH] Fix missing space typos in B021, B022 error messages (#257) --- bugbear.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bugbear.py b/bugbear.py index 4201fbc..358c02f 100644 --- a/bugbear.py +++ b/bugbear.py @@ -1023,14 +1023,14 @@ def visit_comprehension(self, node): ) B021 = Error( message=( - "B021 f-string used as docstring." + "B021 f-string used as docstring. " "This will be interpreted by python as a joined string rather than a docstring." ) ) B022 = Error( message=( - "B022 No arguments passed to `contextlib.suppress`." - "No exceptions will be suppressed and therefore this" + "B022 No arguments passed to `contextlib.suppress`. " + "No exceptions will be suppressed and therefore this " "context manager is redundant." ) )