From 82c5ae147b81fb76db0bcfb020db3357677e9a54 Mon Sep 17 00:00:00 2001 From: ChristianOertlin Date: Wed, 18 Dec 2024 09:17:57 +0100 Subject: [PATCH] Apply suggestions from code review type hint Co-authored-by: Vincent Janvid <69356202+Vince-janv@users.noreply.github.com> --- cg/services/deliver_files/file_fetcher/analysis_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cg/services/deliver_files/file_fetcher/analysis_service.py b/cg/services/deliver_files/file_fetcher/analysis_service.py index 9a6e344e5a..8154bd7549 100644 --- a/cg/services/deliver_files/file_fetcher/analysis_service.py +++ b/cg/services/deliver_files/file_fetcher/analysis_service.py @@ -113,7 +113,7 @@ def _get_sample_files_from_case_bundle( def _get_analysis_sample_delivery_files( self, case: Case, sample_id: str | None - ) -> list[SampleFile] | None: + ) -> list[SampleFile]: """Return all sample files to deliver for a case. Write a list of sample files to deliver for a case. args: @@ -132,7 +132,7 @@ def _get_analysis_sample_delivery_files( @handle_missing_bundle_errors def _get_analysis_case_delivery_files( self, case: Case, sample_id: str | None - ) -> list[CaseFile] | None: + ) -> list[CaseFile]: """ Return a complete list of analysis case files to be delivered and ignore analysis sample files. This is to ensure that only case level analysis files are delivered.