ExtensionElement¶
- class flexcore.config.spec.ExtensionElement(*, kind: ~typing.Literal['extension'], name: str, entry_point: str, options: dict[str, ~typing.Any] = <factory>)¶
A user function that adds constraints or an objective to the model.
The spec only names the function, so a spec that uses one builds only where the package defining it is installed.
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].