-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
B904: ensure the raise is in the same context with the except (#191)
* B904: ensure the raise is in the same context with the except * not len() >= 2 to len() < 2 Co-authored-by: Cooper Lees <[email protected]> * add tests about multi-level contexts * Update bugbear.py Change the self.context to self.contexts ... Co-authored-by: Cooper Lees <[email protected]>
- Loading branch information
1 parent
c452048
commit 9e14a8c
Showing
3 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters