plummet/__init__.py
def moments_match(moment1: AGGREGATE_TYPE, moment2: AGGREGATE_TYPE):
    """
    Checks that two moments match. If they do not, raises an exception.
    """
    fixed_moment1 = momentize(moment1)
    fixed_moment2 = momentize(moment2)
    PlummetError.require_condition(
        fixed_moment1 == fixed_moment2,
        f"Moments do not match: {fixed_moment1} != {fixed_moment2}",
    )
    return True

    Checks that two moments match. If they do not, raises an exception.
    
Checks that two moments match. If they do not, raises an exception.
Checks that two moments match . If they do not raises an exception .
def moments_match(moment1: AGGREGATE_TYPE, moment2: AGGREGATE_TYPE):
    fixed_moment1 = momentize(moment1)
    fixed_moment2 = momentize(moment2)
    PlummetError.require_condition(
        fixed_moment1 == fixed_moment2,
        f"Moments do not match: {fixed_moment1} != {fixed_moment2}",
    )
    return True
def moments_match ( moment1 : AGGREGATE_TYPE , moment2 : AGGREGATE_TYPE ) : fixed_moment1 = momentize ( moment1 ) fixed_moment2 = momentize ( moment2 ) PlummetError . require_condition ( fixed_moment1 == fixed_moment2 , f"Moments do not match: {fixed_moment1} != {fixed_moment2}" , ) return True
Checks that two moments match.
Checks that two moments match .
"""
    Checks that two moments match. If they do not, raises an exception.
    """
moment1
AGGREGATE_TYPE
moment2
AGGREGATE_TYPE