mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
Clean up some uses of set, list, and dict
* Use set literals instead of set([...]) * Avoid list(sorted(...)) as sorted returns a list * Replace dict() with dict literal
This commit is contained in:
parent
23b1f37ffd
commit
541bac6a82
8 changed files with 41 additions and 41 deletions
|
|
@ -45,8 +45,8 @@ def test_information(system, pyversion, pyimpl):
|
|||
},
|
||||
}
|
||||
option_manager = mock.Mock(
|
||||
registered_plugins=set([('pycodestyle', '2.0.0'),
|
||||
('mccabe', '0.5.9')]),
|
||||
registered_plugins={('pycodestyle', '2.0.0'),
|
||||
('mccabe', '0.5.9')},
|
||||
version='3.1.0',
|
||||
)
|
||||
assert expected == debug.information(option_manager)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue