Literal¶ class hugr.model.Literal(value: str | float | int | bytes)[source]¶ Bases: Term Static literal value. Methods from_str Read the term from its string representation. to_list_parts to_tuple_parts Attributes value static from_str(s: str) → Term¶ Read the term from its string representation.