Skip to content
erc7730.convert.resolved.enums module
-
erc7730.convert.resolved.enums.get_enum(ref: ~erc7730.model.paths.DescriptorPath, enums: dict[~typing.Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Id', description='An internal identifier that can be used either for clarity specifying what the element is or as a reference in device specific sections.', examples=['some_identifier'], metadata=[MinLen(min_length=1)]), ~erc7730.common.pydantic.ErrorTypeLabel(func=~erc7730.common.pydantic.ErrorTypeLabel._validator.<locals>.validate, json_schema_input_type=PydanticUndefined)], ~typing.Annotated[dict[str, str], FieldInfo(annotation=NoneType, required=True, title='Enum Definition', description='A mapping of enum values to human readable strings.', examples=[{'1': 'stable', '2': 'variable'}], metadata=[MinLen(min_length=1), MaxLen(max_length=32)])]], out: ~erc7730.common.output.OutputAdder) → dict[str, str] | None[source]View on GitHub
-
erc7730.convert.resolved.enums.get_enum_id(path: DescriptorPath, out: OutputAdder) → str | None[source]View on GitHub