Skip to content

Commit 7d1adf9

Browse files
authored
Add missing error code to message for B024 (#276)
Resolves #275
1 parent 1007f5c commit 7d1adf9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bugbear.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1173,8 +1173,9 @@ def visit_Lambda(self, node):
11731173
B023 = Error(message="B023 Function definition does not bind loop variable {!r}.")
11741174
B024 = Error(
11751175
message=(
1176-
"{} is an abstract base class, but it has no abstract methods. Remember to use"
1177-
" @abstractmethod, @abstractclassmethod and/or @abstractproperty decorators."
1176+
"B024 {} is an abstract base class, but it has no abstract methods. Remember to"
1177+
" use @abstractmethod, @abstractclassmethod and/or @abstractproperty"
1178+
" decorators."
11781179
)
11791180
)
11801181

0 commit comments

Comments
 (0)