(self)
| 65 | return stringify_id(self.component_id) |
| 66 | |
| 67 | def to_dict(self) -> dict: |
| 68 | specs: Any = { |
| 69 | "id": self.component_id_str(), |
| 70 | "property": self.component_property, |
| 71 | } |
| 72 | if self.allow_optional: |
| 73 | specs["allow_optional"] = True |
| 74 | return specs |
| 75 | |
| 76 | def __eq__(self, other): |
| 77 | """ |