Skip to content

Commit

Permalink
Add missing error code to message for B024 (#276)
Browse files Browse the repository at this point in the history
Resolves #275
  • Loading branch information
samueljsb committed Aug 23, 2022
1 parent 1007f5c commit 7d1adf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bugbear.py
Expand Up @@ -1173,8 +1173,9 @@ def visit_Lambda(self, node):
B023 = Error(message="B023 Function definition does not bind loop variable {!r}.")
B024 = Error(
message=(
"{} is an abstract base class, but it has no abstract methods. Remember to use"
" @abstractmethod, @abstractclassmethod and/or @abstractproperty decorators."
"B024 {} is an abstract base class, but it has no abstract methods. Remember to"
" use @abstractmethod, @abstractclassmethod and/or @abstractproperty"
" decorators."
)
)

Expand Down

0 comments on commit 7d1adf9

Please sign in to comment.