Getting "A non-annotated attribute was detected" error while launching saf application (saf run).
Resolved the error by specifying type of variables in stepmodel:
Adding other keywords as I didn't find this post on the first time.
In my case, the first error output was:
Error: Failed to find a viable solution entry point.
And then the same output (I put the string here instead of image for better referencing too):
raise PydanticUserError(pydantic.errors.PydanticUserError: A non-annotated attribute was detected: get_named_selections_script = "toto". All model fields require a type annotation; if 'get_named_selections_script' is not meant to be a field, you may be able to resolve this error by annotating it as a 'ClassVar' or updating 'model_config['ignored_types']'.