From 02f7d0ba392b08cb5d7a7ac2ce361c58e0a9bf15 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Tue, 19 Dec 2023 09:53:15 -0500 Subject: [PATCH] flake8 --- dcicutils/portal_utils.py | 2 +- dcicutils/structured_data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dcicutils/portal_utils.py b/dcicutils/portal_utils.py index 5bf7a6031..3ffda89b9 100644 --- a/dcicutils/portal_utils.py +++ b/dcicutils/portal_utils.py @@ -389,7 +389,7 @@ def _create_router_for_testing(endpoints: Optional[List[Dict[str, Union[str, Cal for endpoint in endpoints: if (endpoint_path := endpoint.get("path")) and (endpoint_function := endpoint.get("function")): endpoint_method = endpoint.get("method", "GET") - def endpoint_wrapper(request): + def endpoint_wrapper(request): # noqa response = endpoint_function(request) return PyramidResponse(json.dumps(response), content_type="application/json; charset=utf-8") endpoint_id = str(uuid()) diff --git a/dcicutils/structured_data.py b/dcicutils/structured_data.py index f13612653..a889ee3a3 100644 --- a/dcicutils/structured_data.py +++ b/dcicutils/structured_data.py @@ -6,7 +6,7 @@ from pyramid.router import Router import re import sys -from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union +from typing import Any, Callable, List, Optional, Tuple, Type, Union from webtest.app import TestApp from dcicutils.common import OrchestratedApp from dcicutils.data_readers import CsvReader, Excel, RowReader