Skip to content

Commit

Permalink
Cast stop_long_running to bool
Browse files Browse the repository at this point in the history
It is not really a subclass of bool so pydantic validation fails, but its context is also never used so casting is OK.
  • Loading branch information
yngve-sk committed Nov 5, 2024
1 parent d60596c commit 4e58e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/config/queue_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def from_dict(cls, config_dict: ConfigDict) -> QueueConfig:
selected_queue_system,
queue_options,
queue_options_test_run,
stop_long_running=stop_long_running,
stop_long_running=bool(stop_long_running),
)

def create_local_copy(self) -> QueueConfig:
Expand All @@ -375,7 +375,7 @@ def create_local_copy(self) -> QueueConfig:
QueueSystem.LOCAL,
self.queue_options_test_run,
self.queue_options_test_run,
stop_long_running=self.stop_long_running,
stop_long_running=bool(self.stop_long_running),
)

@property
Expand Down

0 comments on commit 4e58e6b

Please sign in to comment.