SectionOptions
Overview
Resolved values for one feature section, readable as attributes or as a mapping.
__init__
Signature
__init__(section, values, declared)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| section | vueda.core.features.FeatureSection | yes | ||
| values | collections.abc.Mapping[str, typing.Any] | yes | ||
| declared | collections.abc.Iterable[str] | no | () |
Source
server/vueda/core/options.py:53
is_declared
Return whether an author wrote name on this model or one of its bases.
A feature that must tell an explicit choice from its own default reads this. Everything else should read the value, which already accounts for defaults and inheritance.
Signature
is_declared(self, name)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| name | str | yes |
Returns
bool
Source
server/vueda/core/options.py:62
migration_values
Return only the options the owning feature marked as migration relevant.
Signature
migration_values(self)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes |
Returns
dict[str, typing.Any]
Source
server/vueda/core/options.py:88
name
Source
server/vueda/core/options.py:58
section
Source
server/vueda/core/options.py:50