INNER CODE UNIT · Python
raw_value
viticci/shortcuts-playground-plugin · claude/skills/shortcuts-playground/scripts/generate_healthkit_reference.py:252
raw_value: int | str | None = previous_int + 1 if previous_int is not None else None
else:
try:
raw_value = int(expr, 0)
previous_int = raw_value
except ValueError:
raw_value = expr
if isinstance(raw_value, int):
previous_int = raw_value
values.append(
{
"symbol": const,
"shortcut_label_guess": value_label(enum_name, const),
"value": raw_value,
}
)
out[enum_name] = values
return out