nv_dfm_core.api.ForEach#
- class nv_dfm_core.api.ForEach(*, dfm_body=[], dfm_node_id=<factory>, dfm_after=None, dfm_class_name='nv_dfm_core.api.ForEach', seq)[source]#
Takes an iterable and iterates over it, executing the body for each element.
Usage: seq = … with ForEach(seq=seq) as e:
# body Yield(value=e)
- Parameters:
- model_config: ConfigDict = {'extra': 'forbid', 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].