From 49690d86fdfd50d572437e4ff28b559cd665f4b9 Mon Sep 17 00:00:00 2001 From: Megan Date: Mon, 21 Oct 2024 15:35:56 +0100 Subject: [PATCH] feature/PI-551-remove_fhir_from_read_product Sonarcloud update type hint --- src/layers/domain/api/common_steps/read_product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers/domain/api/common_steps/read_product.py b/src/layers/domain/api/common_steps/read_product.py index cdb94850..e4d20146 100644 --- a/src/layers/domain/api/common_steps/read_product.py +++ b/src/layers/domain/api/common_steps/read_product.py @@ -35,7 +35,7 @@ def read_product(data, cache) -> CpmProduct: return cpm_product -def product_to_dict(data, cache) -> dict: +def product_to_dict(data, cache) -> tuple[str, dict]: product: CpmProduct = data[read_product] return HTTPStatus.OK, product.state()