Enable more SIM ruff rules (#113015)
* SIM101 SIM103 * SIM107 SIM109 * SIM110 * SIM112 SIM113 * SIM115 * SIM116 * Fix * Fix * Fix
This commit is contained in:
parent
e96ef4613c
commit
cddce0ce0d
17 changed files with 41 additions and 70 deletions
|
@ -72,10 +72,7 @@ def _same_lists(list_a, list_b):
|
|||
if len(list_a) != len(list_b):
|
||||
return False
|
||||
|
||||
for item in list_a:
|
||||
if item not in list_b:
|
||||
return False
|
||||
return True
|
||||
return all(item in list_b for item in list_a)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue