def parse_alpha(args):
    if len(args) == 1 and args[0].type in ('NUMBER', 'INTEGER'):
        return min(1, max(0, args[0].value))
If args is a list of a single INTEGER or NUMBER token,
dataset/ETHPy150Open FichteFoll/CSScheme/tinycsscheme/tinycss/color3.py/parse_alpha