MCPcopy Create free account
hub / github.com/FastLED/FastLED / from_string

Method from_string

ci/util/pio_package_messages.py:243–255  ·  view source on GitHub ↗

Convert string to BuildState. Args: value: State string Returns: BuildState enum value

(cls, value: str)

Source from the content-addressed store, hash-verified

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

Callers 5

from_dictMethod · 0.45
from_dictMethod · 0.45
from_dictMethod · 0.45

Calls

no outgoing calls

Tested by 2