src/estimagic/parameters/check_constraints.py
def check_types(constraints):
    """Check that no invalid constraint types are requested.

    Args:
        constraints (list): List of constraints.

    Raises:
        TypeError if invalid constraint types are encountered



    """
    valid_types = {
        "covariance",
        "sdcorr",
        "linear",
        "probability",
        "increasing",
        "decreasing",
        "equality",
        "pairwise_equality",
        "fixed",
    }
    for constr in constraints:
        if constr["type"] not in valid_types:
            raise TypeError("Invalid constraint_type: {}".format(constr["type"]))
Check that no invalid constraint types are requested.

    Args:
        constraints (list): List of constraints.

    Raises:
        TypeError if invalid constraint types are encountered



    
Check that no invalid constraint types are requested.
Args:
constraints (list): List of constraints.

TypeError if invalid constraint types are encountered
Check that no invalid constraint types are requested . Args : constraints ( list ) : List of constraints . TypeError if invalid constraint types are encountered
def check_types(constraints):
    valid_types = {
        "covariance",
        "sdcorr",
        "linear",
        "probability",
        "increasing",
        "decreasing",
        "equality",
        "pairwise_equality",
        "fixed",
    }
    for constr in constraints:
        if constr["type"] not in valid_types:
            raise TypeError("Invalid constraint_type: {}".format(constr["type"]))
def check_types ( constraints ) : valid_types = { "covariance" , "sdcorr" , "linear" , "probability" , "increasing" , "decreasing" , "equality" , "pairwise_equality" , "fixed" , } for constr in constraints : if constr [ "type" ] not in valid_types : raise TypeError ( "Invalid constraint_type: {}" . format ( constr [ "type" ] ) )
Check that no invalid constraint types are requested.
Check that no invalid constraint types are requested .
"""Check that no invalid constraint types are requested.

    Args:
        constraints (list): List of constraints.

    Raises:
        TypeError if invalid constraint types are encountered



    """
constraints