Code Expression (#1) (#767)

* Replace unused `for` index with underscore

* Use `items()` to directly unpack dictionary values

* Merge duplicate blocks in conditional

* Use `any()` instead of for loop

* Format __init__.py
This commit is contained in:
Yasser Tahiri
2021-10-16 08:29:34 +01:00
committed by GitHub
parent 843b197875
commit 872b85de03
4 changed files with 13 additions and 13 deletions

View File

@ -137,5 +137,5 @@ async def test_authenticator_none_enabled(get_test_auth_client, user):
@pytest.mark.asyncio
async def test_authenticators_with_same_name(get_test_auth_client):
with pytest.raises(DuplicateBackendNamesError):
async for client in get_test_auth_client([BackendNone(), BackendNone()]):
async for _ in get_test_auth_client([BackendNone(), BackendNone()]):
pass