From ffe9df164e2146ed5cb7ff07fdfc3b833d67628f Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Mon, 17 Jun 2024 21:02:58 +0000 Subject: [PATCH] lint --- src/ibek/entity_factory.py | 2 +- src/ibek/ioc.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ibek/entity_factory.py b/src/ibek/entity_factory.py index 1c0887b9..2bdf14c1 100644 --- a/src/ibek/entity_factory.py +++ b/src/ibek/entity_factory.py @@ -15,7 +15,7 @@ from ibek.globals import JINJA from .ioc import Entity, EnumVal, clear_entity_model_ids -from .params import Define, EnumParam, IdParam, ObjectParam +from .params import EnumParam, IdParam, ObjectParam from .support import EntityModel, Support from .utils import UTILS diff --git a/src/ibek/ioc.py b/src/ibek/ioc.py index 92c5f950..c08aca2d 100644 --- a/src/ibek/ioc.py +++ b/src/ibek/ioc.py @@ -18,7 +18,6 @@ from .entity_model import EntityModel from .globals import BaseSettings -from .params import IdParam from .utils import UTILS # a global dict of all entity instances indexed by their ID @@ -87,7 +86,7 @@ def _process_field(self: Entity, name: str, value: Any, typ: str): # pre/post_defines are added into the model instance fields list here if name not in self.model_fields: - self.model_fields[name] = FieldInfo(annotation=typ, default=value) + self.model_fields[name] = FieldInfo(annotation=str, default=value) # update the attribute with the rendered value setattr(self, name, value)