Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jun 17, 2024
1 parent 99d6b30 commit ffe9df1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ibek/entity_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions src/ibek/ioc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ffe9df1

Please sign in to comment.