MCPcopy Create free account
hub / github.com/F-Stack/f-stack / from_dict

Method from_dict

dpdk/dts/framework/config/__init__.py:187–195  ·  view source on GitHub ↗
(d: dict)

Source from the content-addressed store, hash-verified

185
186 @staticmethod
187 def from_dict(d: dict) -> "BuildTargetConfiguration":
188 return BuildTargetConfiguration(
189 arch=Architecture(d["arch"]),
190 os=OS(d["os"]),
191 cpu=CPUType(d["cpu"]),
192 compiler=Compiler(d["compiler"]),
193 compiler_wrapper=d.get("compiler_wrapper", ""),
194 name=f"{d['arch']}-{d['os']}-{d['cpu']}-{d['compiler']}",
195 )
196
197
198@dataclass(slots=True, frozen=True)

Callers

nothing calls this directly

Calls 5

ArchitectureClass · 0.85
OSClass · 0.85
CPUTypeClass · 0.85
CompilerClass · 0.85

Tested by

no test coverage detected