INNER CODE UNIT · Python
Entry
dotnet/sdk · .github/scripts/check_vendored_files.py:73
class Entry:
id: str
local_path: str
notes: str
sources: list[Source]
area_labels: object
@classmethod
def from_dict(cls, d: dict[str, Any], default_area_labels: object) -> "Entry":
area_labels = d.get("area_labels", default_area_labels)
return cls(
id=d["id"],
local_path=d["local_path"],
notes=d.get("notes", ""),
sources=[Source.from_dict(s) for s in d["sources"]],
area_labels=area_labels.copy() if isinstance(area_labels, list) else area_labels,
)