From 98a5fb4a6b829fac236b0fb68d894a4bf2cb9fef Mon Sep 17 00:00:00 2001 From: JosePizarro3 Date: Thu, 19 Sep 2024 09:55:12 +0200 Subject: [PATCH] Fix types --- src/nomad_simulations/schema_packages/workflow/single_point.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nomad_simulations/schema_packages/workflow/single_point.py b/src/nomad_simulations/schema_packages/workflow/single_point.py index 15592046..2a24b8f4 100644 --- a/src/nomad_simulations/schema_packages/workflow/single_point.py +++ b/src/nomad_simulations/schema_packages/workflow/single_point.py @@ -106,7 +106,7 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None: # SinglePoint can only have one task; if it has more, delete the `tasks` if self.tasks is not None and len(self.tasks) > 1: logger.error('A `SinglePoint` workflow must have only one task.') - self.tasks = None + self.tasks: list[Task] = [] return # Generate the `tasks` section if this does not exist