def block(block: str=Query(..., regex='^[0-9]*(,[0-9]+)*$')):
    'Specify and parse a block index parameter.'
    if (not block):
        return ()
    return tuple(map(int, block.split(',')))
Specify and parse a block index parameter.
def block(block: str=Query(..., regex='^[0-9]*(,[0-9]+)*$')):
    
    if (not block):
        return ()
    return tuple(map(int, block.split(',')))