mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
linters: Add flake8-bugbear for finding bugs and design problems
Also, make appropriate changes to satisfy issues flagged by `flake8-bugbear`.
This commit is contained in:
parent
e2c4b50a46
commit
b42e758ac7
3 changed files with 7 additions and 3 deletions
|
|
@ -147,7 +147,7 @@ class AfterInitFormatter(base.BaseFormatter):
|
|||
def test_after_init_is_always_called():
|
||||
"""Verify after_init is called."""
|
||||
formatter = AfterInitFormatter(options())
|
||||
assert getattr(formatter, 'post_initialized') is True
|
||||
assert formatter.post_initialized is True
|
||||
|
||||
|
||||
class FormatFormatter(base.BaseFormatter):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue