Skip to content

Commit 3913cd3

Browse files
committed
fix: updated list[str] to List[str]
1 parent b8e3867 commit 3913cd3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sandbox/api/utils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from logging import getLogger
22
from json import dumps, load
3-
from typing import Any, Optional
3+
from typing import Any, Optional, List
44

55
from flask import Response, Request
66
from yaml import CLoader as Loader
@@ -224,7 +224,7 @@ def generate_response_from_example(example_path: str, status_code: int) -> Respo
224224

225225

226226
def check_for_consent_include_params(
227-
_include: list[str],
227+
_include: List[str],
228228
include_none_response_yaml: str,
229229
include_both_response_yaml: str,
230230
include_patient_response_yaml: str = None,
@@ -233,7 +233,7 @@ def check_for_consent_include_params(
233233
"""Checks the GET consent request include params and provides the related response
234234
235235
Args:
236-
_include (str): The include parameters supplied to the request
236+
_include (List[str]): The include parameters supplied to the request
237237
include_none_response_yaml (str): Bundle to return when include params are empty
238238
include_both_response_yaml (str): Bundle to return when include param is Consent:performer,Consent:patient
239239
include_patient_response_yaml (str): (optional) Bundle to return when include param is Consent:patient
@@ -267,17 +267,17 @@ def check_for_consent_include_params(
267267

268268

269269
def check_for_consent_filtering(
270-
status: list[str],
271-
_include: list[str],
270+
status: List[str],
271+
_include: List[str],
272272
status_active_with_details_response_yaml: str,
273273
status_inactive_response_yaml: str,
274274
status_proposed_and_active_response_yaml: str,
275275
) -> Response:
276276
"""Checks the GET consent request status params and provides related response
277277
278278
Args:
279-
status (list[str]): The status parameters supplied to the request
280-
status_none_response_yaml (str): Bundle to return when no status param is provided
279+
status (List[str]): The status parameters supplied to the request
280+
_include (List[str]): The include parameters supplied to the request
281281
status_active_with_details_response_yaml (str): Bundle to return when status param is 'active'
282282
status_inactive_response_yaml (str): Bundle to return when status param is 'inactive'
283283
status_proposed_and_active_response_yaml (str): Bundle to return when status param is 'proposed,inactive'

0 commit comments

Comments
 (0)