(one, two)
return all(
        key in two and equal(value, two[key])
        for key, value in one.items()
    )
Check if two mappings are equal using the semantics of `equal`.
Check if two mappings are equal using the semantics of `equal`.
Check if two mappings are equal using the semantics of equal .
def _mapping_equal(one, two):
    """
    Check if two mappings are equal using the semantics of `equal`.
    """
    if len(one) != len(two):
        return False
    return all(
        key in two and equal(value, two[key])
        for key, value in one.items()
    )
def _mapping_equal ( one , two ) : if len ( one ) != len ( two ) : return False return all ( key in two and equal ( value , two [ key ] ) for key , value in one . items ( ) )