Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Dec 19, 2023
1 parent 14e9f9f commit 02f7d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dcicutils/portal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion dcicutils/structured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02f7d0b

Please sign in to comment.