From df104618f16fd733c519bf96575c2fc9e47cec47 Mon Sep 17 00:00:00 2001 From: Rupert Swarbrick Date: Thu, 2 Apr 2026 19:18:02 +0100 Subject: [PATCH] Explicitly define mandatory fields of the Deploy object Signed-off-by: Rupert Swarbrick --- src/dvsim/job/deploy.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dvsim/job/deploy.py b/src/dvsim/job/deploy.py index 71247b85..b791f14d 100644 --- a/src/dvsim/job/deploy.py +++ b/src/dvsim/job/deploy.py @@ -86,6 +86,15 @@ def __init__(self, sim_cfg: "SimCfg") -> None: # this current job to run self.needs_all_dependencies_passing = True + # These variables will be extracted from the hjson file by _set_attrs, + # and then _check_attrs checks that they were indeed extracted. Define + # placeholder values here to allow a type checker to know the class has + # the field. + self.build_mode = "" + self.dry_run = False + self.flow_makefile = "" + self.name = "" + # Declare attributes that need to be extracted from the HJSon cfg. self._define_attrs()