in python/pip_install/extract_wheels/lib/annotation.py [0:0]
def __init__(self, content: Dict[str, Any]) -> None:
missing = []
ordered_content = OrderedDict()
for field in (
"additive_build_content",
"copy_executables",
"copy_files",
"data",
"data_exclude_glob",
"srcs_exclude_glob",
):
if field not in content:
missing.append(field)
continue
ordered_content.update({field: content.pop(field)})
if missing:
raise ValueError("Data missing from initial annotation: {}".format(missing))
if content:
raise ValueError(
"Unexpected data passed to annotations: {}".format(
sorted(list(content.keys()))
)
)
return OrderedDict.__init__(self, ordered_content)