Convert string to BuildState. Args: value: State string Returns: BuildState enum value
(cls, value: str)
| 241 | |
| 242 | @classmethod |
| 243 | def from_string(cls, value: str) -> "BuildState": |
| 244 | """Convert string to BuildState. |
| 245 | |
| 246 | Args: |
| 247 | value: State string |
| 248 | |
| 249 | Returns: |
| 250 | BuildState enum value |
| 251 | """ |
| 252 | try: |
| 253 | return cls(value) |
| 254 | except ValueError: |
| 255 | return cls.FAILED |
| 256 | |
| 257 | |
| 258 | @typechecked |
no outgoing calls