Skip to content

Commit 0d54ee6

Browse files
authored
Fix missing space typos in B021, B022 error messages (#257)
1 parent bab0965 commit 0d54ee6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bugbear.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1023,14 +1023,14 @@ def visit_comprehension(self, node):
10231023
)
10241024
B021 = Error(
10251025
message=(
1026-
"B021 f-string used as docstring."
1026+
"B021 f-string used as docstring. "
10271027
"This will be interpreted by python as a joined string rather than a docstring."
10281028
)
10291029
)
10301030
B022 = Error(
10311031
message=(
1032-
"B022 No arguments passed to `contextlib.suppress`."
1033-
"No exceptions will be suppressed and therefore this"
1032+
"B022 No arguments passed to `contextlib.suppress`. "
1033+
"No exceptions will be suppressed and therefore this "
10341034
"context manager is redundant."
10351035
)
10361036
)

0 commit comments

Comments
 (0)