From 95bf96ffbb6c503ae5aa14cb19252a497cceb5fd Mon Sep 17 00:00:00 2001 From: sanderegg <35365065+sanderegg@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:43:22 +0100 Subject: [PATCH] add some noqa --- .../with_dbs/test_modules_comp_scheduler_dask_scheduler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/director-v2/tests/unit/with_dbs/test_modules_comp_scheduler_dask_scheduler.py b/services/director-v2/tests/unit/with_dbs/test_modules_comp_scheduler_dask_scheduler.py index 51f37adafce9..22fe4c730b17 100644 --- a/services/director-v2/tests/unit/with_dbs/test_modules_comp_scheduler_dask_scheduler.py +++ b/services/director-v2/tests/unit/with_dbs/test_modules_comp_scheduler_dask_scheduler.py @@ -102,7 +102,9 @@ def _assert_dask_client_correctly_initialized( ) mocked_dask_client.register_handlers.assert_called_once_with( TaskHandlers( - cast(DaskScheduler, scheduler)._task_progress_change_handler, + cast( + DaskScheduler, scheduler + )._task_progress_change_handler, # noqa: SLF001 cast(DaskScheduler, scheduler)._task_log_change_handler, # noqa: SLF001 ) ) @@ -236,7 +238,7 @@ async def minimal_app(async_client: httpx.AsyncClient) -> FastAPI: # a new thread on which it creates a new loop # causing issues downstream with coroutines not # being created on the same loop - return async_client._transport.app # type: ignore + return async_client._transport.app # type: ignore # noqa: SLF001 @pytest.fixture