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

Class FrameworkResolution

ci/compiler/platformio_ini.py:414–441  ·  view source on GitHub ↗

Cached resolution of a framework shorthand name to its metadata.

Source from the content-addressed store, hash-verified

412
413@dataclass
414class FrameworkResolution:
415 """
416 Cached resolution of a framework shorthand name to its metadata.
417 """
418
419 name: str
420 url: Optional[str] = None # Kept for backward compatibility
421 homepage: Optional[str] = None
422 platforms: list[str] = field(default_factory=lambda: [])
423 resolved_at: Optional[datetime] = None
424 ttl_hours: int = 24
425
426 # Enhanced multi-value fields
427 enhanced_resolution: Optional[FrameworkUrlResolution] = None
428
429 @property
430 def git_url(self) -> Optional[str]:
431 """Get git URL from enhanced resolution."""
432 if self.enhanced_resolution:
433 return self.enhanced_resolution.git_url
434 return self.url if self.url and self.url.endswith(".git") else None
435
436 @property
437 def zip_url(self) -> Optional[str]:
438 """Get zip URL from enhanced resolution."""
439 if self.enhanced_resolution:
440 return self.enhanced_resolution.zip_url
441 return self.url if self.url and self.url.endswith(".zip") else None
442
443
444def _resolve_variable_substitution(

Callers 2

resolve_framework_urlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected