(self)
| 114 | return AbortResult(success, error) |
| 115 | |
| 116 | def to_dict(self) -> dict: |
| 117 | result: dict = {} |
| 118 | result["success"] = from_bool(self.success) |
| 119 | if self.error is not None: |
| 120 | result["error"] = from_union([from_str, from_none], self.error) |
| 121 | return result |
| 122 | |
| 123 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 124 | @dataclass |
nothing calls this directly
no test coverage detected