(parameters)
return tuple(params)
An internal helper for Literal creation: flatten Literals among parameters
An internal helper for Literal creation: flatten Literals among parameters
An internal helper for Literal creation : flatten Literals among parameters
def _flatten_literal_params(parameters):
    """An internal helper for Literal creation: flatten Literals among parameters"""
    params = []
    for p in parameters:
        if isinstance(p, _LiteralGenericAlias):
            params.extend(p.__args__)
        else:
            params.append(p)
    return tuple(params)
def _flatten_literal_params ( parameters ) : params = [ ] for p in parameters : if isinstance ( p , _LiteralGenericAlias ) : params . extend ( p . __args__ ) else : params . append ( p ) return tuple ( params )