(cls)
| 147 | |
| 148 | @classmethod |
| 149 | def field_specs(cls) -> Dict[str, ConfigFieldSpec]: |
| 150 | specs = super().field_specs() |
| 151 | type_spec = specs.get("type") |
| 152 | if type_spec: |
| 153 | registrations = iter_node_schemas() |
| 154 | specs["type"] = replace( |
| 155 | type_spec, |
| 156 | enum=list(registrations.keys()), |
| 157 | enum_options=[ |
| 158 | EnumOption( |
| 159 | value=name, |
| 160 | label=name, |
| 161 | description=schema.summary or "No description provided for this node type", |
| 162 | ) |
| 163 | for name, schema in registrations.items() |
| 164 | ], |
| 165 | ) |
| 166 | return specs |
| 167 | |
| 168 | @classmethod |
| 169 | def from_dict(cls, data: Mapping[str, Any], *, path: str) -> "Node": |
no test coverage detected