From 58fc3fc0f593bec95d6a1ae573c189174d3aa8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Sv=C3=A4rd?= Date: Mon, 18 Nov 2024 18:36:19 +0100 Subject: [PATCH] type hints --- cg_lims/EPPs/udf/calculate/library_normalization.py | 6 ++++-- cg_lims/EPPs/udf/calculate/library_normalization_revio.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cg_lims/EPPs/udf/calculate/library_normalization.py b/cg_lims/EPPs/udf/calculate/library_normalization.py index 9e65b303..84fbc5b9 100644 --- a/cg_lims/EPPs/udf/calculate/library_normalization.py +++ b/cg_lims/EPPs/udf/calculate/library_normalization.py @@ -130,8 +130,10 @@ def library_normalization( concentration_udf=concentration_udf, ) if failed_samples: - failed_samples_string = ", ".join(failed_samples) - error_message = f"The following artifacts had a lower concentration than targeted: {failed_samples_string}" + failed_samples_string: str = ", ".join(failed_samples) + error_message: str = ( + f"The following artifacts had a lower concentration than targeted: {failed_samples_string}" + ) LOG.info(error_message) raise InvalidValueError(error_message) message: str = "Volumes were successfully calculated." diff --git a/cg_lims/EPPs/udf/calculate/library_normalization_revio.py b/cg_lims/EPPs/udf/calculate/library_normalization_revio.py index 738ef1a5..214c075b 100644 --- a/cg_lims/EPPs/udf/calculate/library_normalization_revio.py +++ b/cg_lims/EPPs/udf/calculate/library_normalization_revio.py @@ -108,8 +108,10 @@ def library_normalization_revio( concentration_udf=concentration_udf, ) if failed_samples: - failed_samples_string = ", ".join(failed_samples) - error_message = f"The following artifacts had a lower concentration than targeted: {failed_samples_string}" + failed_samples_string: str = ", ".join(failed_samples) + error_message: str = ( + f"The following artifacts had a lower concentration than targeted: {failed_samples_string}" + ) LOG.error(error_message) raise InvalidValueError(error_message) message: str = "Volumes were successfully calculated."